Skip to content

Commit 6b0bd59

Browse files
committed
recent dms [nfc]: Unhoist a self-user lookup
1 parent 1d52348 commit 6b0bd59

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/widgets/recent_dm_conversations.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,13 @@ class RecentDmConversationsItem extends StatelessWidget {
7979
@override
8080
Widget build(BuildContext context) {
8181
final store = PerAccountStoreWidget.of(context);
82-
final selfUser = store.users[store.selfUserId]!;
83-
8482
final designVariables = DesignVariables.of(context);
8583

8684
final String title;
8785
final Widget avatar;
8886
switch (narrow.otherRecipientIds) { // TODO dedupe with DM items in [InboxPage]
8987
case []:
88+
final selfUser = store.users[store.selfUserId]!;
9089
title = selfUser.fullName;
9190
avatar = AvatarImage(userId: selfUser.userId, size: _avatarSize);
9291
case [var otherUserId]:

0 commit comments

Comments
 (0)