From 309461dcba1b24974eaa0f9111f73e5e45dde769 Mon Sep 17 00:00:00 2001 From: Adasauce Date: Mon, 2 Mar 2020 21:30:19 -0400 Subject: [PATCH] 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. --- src/Cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; }