Skip to content

Commit

Permalink
[FIX] Empty DMs go to sidebar's top after updating user preferences (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusbsilva137 authored Feb 15, 2023
1 parent ae56a2f commit f85d57a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class CachedChatSubscription extends CachedCollection<SubscriptionWithRoom> {

const room = ChatRoom.findOne({ _id: subscription.rid }, options);

const lastRoomUpdate = room?.lm || subscription.ts || subscription._updatedAt;
const lastRoomUpdate = room?.lm || subscription.ts;

return {
...subscription,
Expand Down

0 comments on commit f85d57a

Please sign in to comment.