-
Notifications
You must be signed in to change notification settings - Fork 739
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
Lots of /profile
requests from Android clients
#6952
Comments
(this also seems to happen when a user posts a message) |
When the Android SDK detects a membership event, it forces a fetch of the user profile, to mitigate issue of outdated User data. The Sync response does not contain information about the user profile, but just room member, and user can change their profile data per room. If this is happening when a user send a message, this is probably another bug. Please confirm. By the way it's good to see such issues coming from server maintainers. Thanks! |
Not quite following you here. The sync response should contain the user's full membership event, which should include their |
OK I see, thanks for the background. The problem is that having every android user make a /profile request every time there is an m.room.member is putting quite a lot of load on the servers in the room. (Note: Synapse doesn't cache remote profiles, so it makes requests to the remote server.) I'd be keen that we find an alternative solution if possible. In the case of the "invite people" screen - I'd expect clients to use the user directory endpoint, which returns up-to-date profile data. |
We make a profile request if the Ideally profile information changes would come in the sync response, but this is not the case. |
Whenever a new user joins a big room like Matrix HQ, we see lots of
GET /_matrix/client/r0/profile/<userid>
requests from Element-android useragents. But all the information that the client needs should be in the join event (indeed, the "profile" probably isn't even what you want, since users may have different displaynames/avatars in different rooms).What is the reason for these requests?
The text was updated successfully, but these errors were encountered: