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.
member1-and-too-many-others
Adasauce 5 years ago
parent 1a2b8b7a6b
commit 309461dcba
Signed by: adasauce
GPG Key ID: B4FD3151235211CB
  1. 2
      src/Cache.cpp

@ -1530,7 +1530,7 @@ Cache::getRoomName(lmdb::txn &txn, lmdb::dbi &statesdb, lmdb::dbi &membersdb)
if (total == 2) if (total == 2)
return first_member; return first_member;
else if (total > 2) 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"; return "Empty Room";
} }

Loading…
Cancel
Save