famedly / matrix-dart-sdk

Matrix SDK written in pure Dart.
GNU Affero General Public License v3.0
58 stars 31 forks source link

refactor: Better avatar and names for invites #1879

Closed krille-chan closed 1 month ago

krille-chan commented 1 month ago

Group chats with no user avatar should return null for the room.avatar getter and not a random hero avatar. This could otherwise lead to confusion as it looks like this is a DM which is not the case.

For the name we should also not just display the name of the invitor like in a DM even for group chats, but some more additional information. I found a String for invites quite useful here as this would name rooms without a m.room.name like this: "Invited by $senderName" which should be short enough. The alternative "You have been invited by $senderName" could be too long IMO.