summary refs log tree commit diff
path: root/src/Cache.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2020-03-03 01:36:12 +0000
committerGitHub <noreply@github.com>2020-03-03 01:36:12 +0000
commit7da5361995e8d5680978897f6309af8479c1004b (patch)
tree446372dbf54bcacd76083ef0e2052c0fa64972b6 /src/Cache.cpp
parentFix avatar layering in room list (diff)
parenttotal + first member shows as one too many room members (diff)
downloadnheko-7da5361995e8d5680978897f6309af8479c1004b.tar.xz
Merge pull request #133 from adasauce/member1-and-too-many-others
total + first member shows as one too many room members
Diffstat (limited to 'src/Cache.cpp')
-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"; }