Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F114655
D123.1732569312.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
927 B
Referenced Files
None
Subscribers
None
D123.1732569312.diff
View Options
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
@@ -113,7 +113,11 @@
const auto &roomB = allRooms[idB];
auto aIsInvite = roomA.membership == Invite;
auto bIsInvite = roomB.membership == Invite;
- if (aIsInvite != bIsInvite) {
+ auto aIsFavourite = roomA.tags().find("m.favourite") != nullptr;
+ auto bIsFavourite = roomB.tags().find("m.favourite") != nullptr;
+ if (aIsFavourite != bIsFavourite) {
+ return aIsFavourite;
+ } else if (aIsInvite != bIsInvite) {
/**
* if my membership in A is invite,
* then the membership in B is not invite,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 1:15 PM (13 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40323
Default Alt Text
D123.1732569312.diff (927 B)
Attached To
Mode
D123: Show favourite rooms at the top
Attached
Detach File
Event Timeline
Log In to Comment