Add presence to MXKRecentCellData

This commit is contained in:
aringenbach
2022-03-28 14:02:29 +02:00
parent ff78d21755
commit 9f94a44fa5
2 changed files with 14 additions and 0 deletions
@@ -93,6 +93,19 @@
return roomSummary.avatar;
}
- (MXPresence)presence
{
if (self.roomSummary.isDirect)
{
MXUser *contact = [self.mxSession userWithUserId:self.roomSummary.directUserId];
return contact.presence;
}
else
{
return MXPresenceUnknown;
}
}
- (NSString *)lastEventTextMessage
{
if (self.isSuggestedRoom)