summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdasauce <adasauce@with.parts>2020-03-02 21:30:19 -0400
committerAdasauce <adasauce@with.parts>2020-03-02 21:30:19 -0400
commit309461dcba1b24974eaa0f9111f73e5e45dde769 (patch)
tree0ce9e1779f43f25d6a4c009e48846387bbf4ca96
parentUpload nightlies to #nheko-nightlies:neko.dev (#132) (diff)
downloadnheko-309461dcba1b24974eaa0f9111f73e5e45dde769.tar.xz
total + first member shows as one too many room members
i was confused when a room with me and two friends showed as "user1" and
3 others.
-rw-r--r--src/Cache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Cache.cpp b/src/Cache.cpp
index 0f33a276..3ef3ca07 100644
--- a/src/Cache.cpp
+++ b/src/Cache.cpp
@@ -1530,7 +1530,7 @@ Cache::getRoomName(lmdb::txn &txn, lmdb::dbi &statesdb, lmdb::dbi &membersdb)
         if (total == 2)
                 return first_member;
         else if (total > 2)
-                return QString("%1 and %2 others").arg(first_member).arg(total);
+                return QString("%1 and %2 others").arg(first_member).arg(total - 1);
 
         return "Empty Room";
 }