-
Notifications
You must be signed in to change notification settings - Fork 216
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
Groups: Display flair for users in room history. #450
Conversation
MXRestClient: Add the method to get the publicised groups for a list of users. MXSession: Cache the publicised groups of the matrix users in order to limit the server requests. element-hq/riot-meta#118
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.
LGTM
MatrixSDK/MXSession.m
Outdated
} | ||
|
||
|
||
} failure:nil]; |
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 case of failure, it may worth to put userId
in userIdsWithOutdatedPublicisedGroups
, no?
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.
yes
If this information is not available or marked as outdated, this method returns the current | ||
value and triggers a server request to retrieve the actual publicised groups of this user. | ||
Listen to `kMXSessionDidUpdatePublicisedGroupsForUsersNotification` to be notified in case of update. | ||
|
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.
Could you also indicate that there will be no http requests if there is already one in progress for this userId?
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.
ok
Fix Manu's remarks element-hq/riot-meta#118
MXRestClient: Add the method to get the publicised groups for a list of users.
MXSession: Cache the publicised groups of the matrix users in order to limit the server requests.
element-hq/riot-meta#118