Open Dhruvil-sim opened 1 year ago
So I took a closer look at it, and it seems as though lastMessage is actually better named lastEvent
. I ended up implementing a real lastMessage the crumby way:
room.enumeratorForStoredMessagesWithType(in: [MXEventType.roomMessage.identifier]).nextEvent
did you find a solution to this @Dhruvil-sim ?
Bump. Also having this issue.
I want to show the last message received by each room in the room listing along with name, time and avatar. But lastMessage.text and lastMessage.attributedText are always nil
roomSummary.lastMessage.text
always return nil even if room has message