Page MenuHomePhorge

D123.1732448959.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D123.1732448959.diff

diff --git a/src/matrix-room-list.cpp b/src/matrix-room-list.cpp
--- a/src/matrix-room-list.cpp
+++ b/src/matrix-room-list.cpp
@@ -112,6 +112,8 @@
const auto &roomB = allRooms[idB];
auto aIsInvite = roomA.membership == Invite;
auto bIsInvite = roomB.membership == Invite;
+ auto aIsFavourite = roomA.tags().count("m.favourite") == 1;
+ auto bIsFavourite = roomB.tags().count("m.favourite") == 1;
if (aIsInvite != bIsInvite) {
/**
* if my membership in A is invite,
@@ -120,6 +122,8 @@
* otherwise B should come first
**/
return aIsInvite;
+ } else if (aIsFavourite != bIsFavourite) {
+ return aIsFavourite;
} else {
return latestEventTimestamp(roomA)
> latestEventTimestamp(roomB);

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 3:49 AM (8 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39566
Default Alt Text
D123.1732448959.diff (1 KB)

Event Timeline