Skip to content

Comments

Remove self role updates#1752

Merged
pcapriotti merged 3 commits intopcapriotti/remove-muted-fieldfrom
pcapriotti/remove-conv-role
Sep 13, 2021
Merged

Remove self role updates#1752
pcapriotti merged 3 commits intopcapriotti/remove-muted-fieldfrom
pcapriotti/remove-conv-role

Conversation

@pcapriotti
Copy link
Contributor

@pcapriotti pcapriotti commented Sep 10, 2021

Updates to a member's role now always happen via OtherMemberUpdate, while MemberUpdate is only used to change conversation self status (i.e. hidden/muted/archived).

Also remove the newly added qualified endpoint for fetching self membership data. It was not implemented for remote conversations, and it is not going to be, since the role will not even be stored remotely.

Checklist

  • The PR Title explains the impact of the change.
  • The PR description provides context as to why the change should occur and what the code contributes to that effect. This could also be a link to a JIRA ticket or a Github issue, if there is one.
  • changelog.d contains the following bits of information:
    • A file with the changelog entry in one or more suitable sub-sections. The sub-sections are marked by directories inside changelog.d.

Updates to a member's role now always happen via `OtherMemberUpdate`,
while `MemberUpdate` is used to change conversation self status
(i.e. hidden/muted/archived).
This was a newly added qualified endpoint stub, which raised an error
when used on a remote conversation.

We are now deprecating fetching conversation self membership information
altogether (since clients do not use it, and they can always get that
information from the conversation itself), so this endpoint can simply
be removed.
@pcapriotti pcapriotti marked this pull request as ready for review September 10, 2021 15:43
@pcapriotti pcapriotti merged this pull request into pcapriotti/remove-muted-field Sep 13, 2021
@pcapriotti pcapriotti deleted the pcapriotti/remove-conv-role branch September 13, 2021 10:42
pcapriotti added a commit that referenced this pull request Sep 13, 2021
* Removed mupConvRoleName and self role updates

  Updates to a member's role now always happen via `OtherMemberUpdate`,
  while `MemberUpdate` is used to change conversation self status
  (i.e. hidden/muted/archived).

* Remove qualified GET conversation self

  This was a newly added qualified endpoint stub, which raised an error
  when used on a remote conversation.

  We are now deprecating fetching conversation self membership information
  altogether (since clients do not use it, and they can always get that
  information from the conversation itself), so this endpoint can simply
  be removed.
@jschaul jschaul mentioned this pull request Sep 13, 2021
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