mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
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:
commit
7da5361995
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue