Skip to content

Commit

Permalink
fix isTop when new friend
Browse files Browse the repository at this point in the history
  • Loading branch information
sunhuachuang committed Apr 27, 2021
1 parent a29f970 commit 8de91bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/apps/chat/provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,9 @@ class ChatProvider extends ChangeNotifier {
this.requests[id].overIt(true);
}
var friend = Friend.fromList(params[1]);
if (friend.isTop) {
this.topKeys[friend.id] = friend.lastMessageTime;
}
this.friends[friend.id] = friend;
orderFriends(friend.id);
notifyListeners();
Expand Down

0 comments on commit 8de91bb

Please sign in to comment.