mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
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.
This commit is contained in:
parent
1a2b8b7a6b
commit
309461dcba
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)
|
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…
Reference in a new issue