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

total + first member shows as one too many room members
shh
DeepBlueV7.X 5 years ago committed by GitHub
commit 7da5361995
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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