Skip to content

Commit

Permalink
fix: revert membership initialization behavior (#1417)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnautov-anton authored Dec 13, 2024
1 parent af63684 commit 12aa4af
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1720,10 +1720,7 @@ export class Channel<StreamChatGenerics extends ExtendableGenerics = DefaultGene
}
}

this.state.membership = {
...this.state.membership,
...state.membership,
};
this.state.membership = state.membership || {};

const messages = state.messages || [];
if (!this.state.messages) {
Expand Down

0 comments on commit 12aa4af

Please sign in to comment.