summary refs log tree commit diff
path: root/src/RoomList.cpp
diff options
context:
space:
mode:
authortrilene <trilene@runbox.com>2021-02-25 12:10:12 -0500
committertrilene <trilene@runbox.com>2021-02-25 12:10:12 -0500
commit55fb00c67b611dfa55054b33e2f29d118e18d00f (patch)
tree714e583f6b6cc889bd81396ec425560bc9529848 /src/RoomList.cpp
parentAdd screen sharing window preview (diff)
parentFix unaligned reads (diff)
downloadnheko-55fb00c67b611dfa55054b33e2f29d118e18d00f.tar.xz
Merge remote-tracking branch 'upstream/master' into screenshare-x11
Diffstat (limited to 'src/RoomList.cpp')
-rw-r--r--src/RoomList.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/RoomList.cpp b/src/RoomList.cpp

index 67a7ac40..10042c94 100644 --- a/src/RoomList.cpp +++ b/src/RoomList.cpp
@@ -353,8 +353,8 @@ RoomList::updateRoomDescription(const QString &roomid, const DescInfo &info) struct room_sort { - bool operator()(const QSharedPointer<RoomInfoListItem> a, - const QSharedPointer<RoomInfoListItem> b) const + bool operator()(const QSharedPointer<RoomInfoListItem> &a, + const QSharedPointer<RoomInfoListItem> &b) const { // Sort by "importance" (i.e. invites before mentions before // notifs before new events before old events), then secondly @@ -370,9 +370,9 @@ struct room_sort // Now sort by recency // Zero if empty, otherwise the time that the event occured const uint64_t a_recency = - a->lastMessageInfo().userid.isEmpty() ? 0 : a->lastMessageInfo().timestamp; + a->lastMsgInfo_.userid.isEmpty() ? 0 : a->lastMsgInfo_.timestamp; const uint64_t b_recency = - b->lastMessageInfo().userid.isEmpty() ? 0 : b->lastMessageInfo().timestamp; + b->lastMsgInfo_.userid.isEmpty() ? 0 : b->lastMsgInfo_.timestamp; return a_recency > b_recency; } };