Add user badges to typing bubbles, refactor typing logic
This commit is contained in:
parent
ede34ecee3
commit
f4e336836f
13 changed files with 125 additions and 189 deletions
|
@ -55,7 +55,7 @@ export type PropsData = Pick<
|
|||
| 'shouldShowDraft'
|
||||
| 'title'
|
||||
| 'type'
|
||||
| 'typingContact'
|
||||
| 'typingContactId'
|
||||
| 'unblurredAvatarPath'
|
||||
| 'unreadCount'
|
||||
> & {
|
||||
|
@ -94,7 +94,7 @@ export const ConversationListItem: FunctionComponent<Props> = React.memo(
|
|||
theme,
|
||||
title,
|
||||
type,
|
||||
typingContact,
|
||||
typingContactId,
|
||||
unblurredAvatarPath,
|
||||
unreadCount,
|
||||
}) {
|
||||
|
@ -121,7 +121,7 @@ export const ConversationListItem: FunctionComponent<Props> = React.memo(
|
|||
{i18n('ConversationListItem--message-request')}
|
||||
</span>
|
||||
);
|
||||
} else if (typingContact) {
|
||||
} else if (typingContactId) {
|
||||
messageText = <TypingAnimation i18n={i18n} />;
|
||||
} else if (shouldShowDraft && draftPreview) {
|
||||
messageText = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue