We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3966995 commit 0b6a092Copy full SHA for 0b6a092
ts/models/message.ts
@@ -404,6 +404,14 @@ export class MessageModel extends Model<MessageAttributes> {
404
);
405
}
406
});
407
+ if (this.getConversation()?.isOpenGroupV2() || this.getConversation()?.isClosedGroupV2()) {
408
+ const source = this.get('source');
409
+
410
+ const author = isUsAnySogsFromCache(source)
411
+ ? tr('you')
412
+ : ConvoHub.use().getNicknameOrRealUsernameOrPlaceholder(source);
413
+ return tr('messageSnippetGroup', { author, message_snippet: bodyMentionsMappedToNames });
414
+ }
415
return bodyMentionsMappedToNames;
416
417
0 commit comments