Skip to content
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

Merged
merged 2 commits into from
Feb 5, 2018
Merged

Conversation

giomfo
Copy link
Member

@giomfo giomfo commented Feb 4, 2018

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

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
@giomfo giomfo requested a review from manuroe February 4, 2018 15:54
Copy link
Contributor

@manuroe manuroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

}


} failure:nil];
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@giomfo giomfo merged commit 4c4a2f8 into develop Feb 5, 2018
@giomfo giomfo deleted the meta_118 branch February 5, 2018 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants