element-hq / element-ios

A glossy Matrix collaboration client for iOS
https://element.io
GNU Affero General Public License v3.0
1.73k stars 498 forks source link

Update the message previews text displayed in Favourites/People/Rooms tabs #4918

Open pixlwave opened 3 years ago

pixlwave commented 3 years ago

Following on from https://github.com/vector-im/element-ios/issues/4451, the strings displayed in the rooms lists can be unhelpful for some message types.

Media shows without any indication of the attachment type:

Alice: File Name

Replies show who was replied to but no content:

Alice: In reply to Bob

It would be nice to match the strings used for notifications in #4132, however it would be worth thinking about this a bit given the current sender name prefix style:

Alice: replied Hello Alice: sent a Voice Message

@niquewoodhouse I think you mentioned about whether having the sender name has value in DMs for example.

Update: An additional message type that needs to be considered is when a room has been created but has no other events that should be displayed. Using the creation event gives the string:

∙ You created and configured the room.

Screenshot of these: IMG_0165

niquewoodhouse commented 3 years ago

Will benchmark against