Skip to content

Commit

Permalink
Fix avatars and hide spaces in Share Extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave authored and stefanceriu committed Oct 29, 2021
1 parent d0555b5 commit baef854
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RiotShareExtension/Shared/ShareDataSource.m
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ - (void)loadCellData

for (MXRoomSummary *roomSummary in roomsSummaries)
{
if (!roomSummary.hiddenFromUser)
if (!roomSummary.hiddenFromUser && roomSummary.roomType == MXRoomTypeRoom)
{
[roomSummary setMatrixSession:session];

Expand Down
2 changes: 1 addition & 1 deletion RiotShareExtension/Shared/View/RecentRoomTableViewCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ - (void)render:(MXKCellData *)cellData
[self.avatarImageView vc_setRoomAvatarImageWith:roomCellData.avatarUrl
roomId:roomCellData.roomIdentifier
displayName:roomCellData.roomDisplayname
mediaManager:roomCellData.mxSession.mediaManager];
mediaManager:roomCellData.roomSummary.mxSession.mediaManager];

self.roomTitleLabel.text = roomCellData.roomDisplayname;
if (!self.roomTitleLabel.text.length)
Expand Down
1 change: 1 addition & 0 deletions changelog.d/5057.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Share Extension: Fix missing avatars and don't list spaces as rooms.

0 comments on commit baef854

Please sign in to comment.