Page MenuHomePhorge

D123.1732311918.diff
No OneTemporary

Size
927 B
Referenced Files
None
Subscribers
None

D123.1732311918.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
@@ -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

Mime Type
text/plain
Expires
Fri, Nov 22, 1:45 PM (1 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38922
Default Alt Text
D123.1732311918.diff (927 B)

Event Timeline