-
Notifications
You must be signed in to change notification settings - Fork 505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Spaces] M10.5 Show suggested in room lists #4501 #4658
Conversation
- Request space suggested rooms in `RecentsDataSource`
…om_lists # Conflicts: # Riot/Modules/Common/Recents/DataSources/RecentsDataSource.m
- Show suggested rooms section in home screen (no actions) - Show suggested rooms section in rooms screen (no actions)
- Preview suggested rooms
…om_lists # Conflicts: # Riot/Modules/Common/Recents/DataSources/RecentsDataSource.m
|
||
import Foundation | ||
|
||
extension MXSpaceChildInfo { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use RoomAvatarView or factorize this code for existing place where RoomAvatarView is not used. It seems copy paste several time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SBiOSoftWhare I don't understand your comment. setRoomAvatarImage
is a method called twice alongside the method setRoomAvatarImage
of the MXRoomSummary
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact if we can't use AvatarImageView
subclass we can make an intermediate extension on MKImageView like this to avoid code duplication:
extension MXKImageView {
func vc_setRoomAvatarImage(with url: String?, displayName: String, mediaManager: MXMediaManager) {
}
}
@@ -1275,8 +1345,17 @@ + (RecentsDataSourceState *)computeStateWithCells:(NSArray<id<MXKRecentCellDataS | |||
} | |||
else if (recentsDataSourceMode == RecentsDataSourceModeRooms) | |||
{ | |||
if (recentCellDataStoring.spaceChildInfo) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a small comment
- Update after code review
- Update after code review
Fixes #4501
Note that room preview may change.
@vector-im/design testable build here: https://i.diawi.com/WeA7ZY