Merge pull request #133 from adasauce/member1-and-too-many-others

total + first member shows as one too many room members
This commit is contained in:
DeepBlueV7.X 2020-03-03 01:36:12 +00:00 committed by GitHub
commit 7da5361995
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";
} }