Skip to content

Commit

Permalink
feat: allow optimistically added messages in local state (#1064)
Browse files Browse the repository at this point in the history
Co-authored-by: Steve Galili <galiliziv@gmail.com>
  • Loading branch information
vishalnarkhede and vanGalilea committed Nov 11, 2022
1 parent 5602322 commit 16d9363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,7 @@ export class Channel<StreamChatGenerics extends ExtendableGenerics = DefaultGene
if (!this.state.messages) {
this.state.initMessages();
}
const { messageSet } = this.state.addMessagesSorted(messages, false, true, true, messageSetToAddToIfDoesNotExist);
const { messageSet } = this.state.addMessagesSorted(messages, true, true, true, messageSetToAddToIfDoesNotExist);

if (!this.state.pinnedMessages) {
this.state.pinnedMessages = [];
Expand Down

0 comments on commit 16d9363

Please sign in to comment.