Group Typing Bubble Animations

This commit is contained in:
ayumi-signal
2023-09-27 17:23:52 -04:00
committed by GitHub
parent 88df942029
commit 283ef57779
14 changed files with 565 additions and 209 deletions

View File

@@ -81,7 +81,9 @@ export function getConversation(model: ConversationModel): ConversationType {
Object.values(model.contactTypingTimers || {}),
'timestamp'
);
const typingContactIds = typingValues.map(({ senderId }) => senderId);
const typingContactIdTimestamps = Object.fromEntries(
typingValues.map(({ senderId, timestamp }) => [senderId, timestamp])
);
const ourAci = window.textsecure.storage.user.getAci();
const ourPni = window.textsecure.storage.user.getPni();
@@ -222,7 +224,7 @@ export function getConversation(model: ConversationModel): ConversationType {
timestamp: dropNull(timestamp),
title: getTitle(attributes),
titleNoDefault: getTitleNoDefault(attributes),
typingContactIds,
typingContactIdTimestamps,
searchableTitle: isMe(attributes)
? window.i18n('icu:noteToSelf')
: getTitle(attributes),