diff options
author | Adasauce <adasauce@with.parts> | 2020-03-02 21:30:19 -0400 |
---|---|---|
committer | Adasauce <adasauce@with.parts> | 2020-03-02 21:30:19 -0400 |
commit | 309461dcba1b24974eaa0f9111f73e5e45dde769 (patch) | |
tree | 0ce9e1779f43f25d6a4c009e48846387bbf4ca96 /src | |
parent | Upload nightlies to #nheko-nightlies:neko.dev (#132) (diff) | |
download | nheko-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/Cache.cpp | 2 |
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"; } |