MESSENGER-5223 add federation pill in timeline

This commit is contained in:
JanNiklas Grabowski
2024-01-17 13:51:30 +01:00
parent 99e51e0a7a
commit 0df2b02918
3 changed files with 54 additions and 4 deletions
@@ -275,7 +275,14 @@ class BaseRoomCell: MXKRoomBubbleTableViewCell, BaseRoomCellProtocol {
let paginationDate = bubbleData.date,
roomCellContentView.showPaginationTitle {
roomCellContentView.paginationLabel.text = bubbleData.eventFormatter.dateString(from: paginationDate, withTime: false)?.uppercased()
}
}
// BWI: #5223 add federation icon in timeline
if let bubbleData = self.bubbleData {
if let room = bubbleData.mxSession.room(withRoomId: bubbleData.roomId) {
self.roomCellContentView?.showFederationPill = room.isRoomMemberFederated(bubbleData.senderId)
}
}
if roomCellContentView.showEncryptionStatus {
self.updateEncryptionStatusViewImage()