💄 Show nick instead of name in typing indicator

This commit is contained in:
LittleSheep 2025-03-22 00:16:59 +08:00
parent dfe117d04f
commit 152872db65

View File

@ -36,10 +36,12 @@ class ChatTypingIndicator extends StatelessWidget {
'messageTyping'
.plural(controller.typingMembers.length, args: [
controller.typingMembers
.map((ele) => (ele.nick?.isNotEmpty ?? false)
? ele.nick!
: ud.getFromCache(ele.accountId)?.name ??
'unknown')
.map(
(ele) => (ele.nick?.isNotEmpty ?? false)
? ele.nick!
: ud.getFromCache(ele.accountId)?.nick ??
'unknown',
)
.join(', '),
]),
),