[Gekidou] Manage user websocket events (#5862)

* Manage user websocket events

* Revert ChannelMembership -> MyChannelMembership

* Address feedback

* Update channel display name when the user changes

* Minor name and refactoring changes from feedback

* Address feedback

* Address feedback

* Add line breaks for readability
This commit is contained in:
Daniel Espino García
2022-01-24 12:12:06 +01:00
committed by GitHub
parent 55197b6125
commit d5228633b2
14 changed files with 287 additions and 74 deletions

View File

@@ -223,7 +223,7 @@ export type HandleGroupArgs = PrepareOnly & {
};
export type HandleChannelMembershipArgs = PrepareOnly & {
channelMemberships: ChannelMember[];
channelMemberships: Array<Pick<ChannelMembership, 'user_id' | 'channel_id'>>;
};
export type HandleGroupMembershipArgs = PrepareOnly & {

View File

@@ -122,3 +122,4 @@ type RawValue =
| TeamSearchHistory
| TermsOfService
| UserProfile
| Pick<ChannelMembership, 'channel_id' | 'user_id'>