@@ -335,12 +335,15 @@ class MessageListAppBarTitle extends StatelessWidget {
335
335
case ChannelNarrow (: var streamId):
336
336
final store = PerAccountStoreWidget .of (context);
337
337
final stream = store.streams[streamId];
338
+ // TODO(i18n): provide translations just as
339
+ // 'zulipLocalizations.unknownUserName' for 'unknown channel'
338
340
final streamName = stream? .name ?? '(unknown channel)' ;
339
341
return _buildStreamRow (context, stream: stream, text: streamName);
340
342
341
343
case TopicNarrow (: var streamId, : var topic):
342
344
final store = PerAccountStoreWidget .of (context);
343
345
final stream = store.streams[streamId];
346
+ // TODO(i18n): provide translations for 'unknown channel'
344
347
final streamName = stream? .name ?? '(unknown channel)' ;
345
348
return _buildStreamRow (context, stream: stream, text: "$streamName > $topic " );
346
349
@@ -349,7 +352,8 @@ class MessageListAppBarTitle extends StatelessWidget {
349
352
if (otherRecipientIds.isEmpty) {
350
353
return const Text ("DMs with yourself" );
351
354
} else {
352
- final names = otherRecipientIds.map ((id) => store.users[id]? .fullName ?? '(unknown user)' );
355
+ final names = otherRecipientIds.map ((id) =>
356
+ store.users[id]? .fullName ?? zulipLocalizations.unknownUserName);
353
357
return Text ("DMs with ${names .join (", " )}" ); // TODO show avatars
354
358
}
355
359
}
0 commit comments