Skip to content

Update messageStore.js to fix Issue:It it duplicating the self messag…#5341

Merged
darrachequesne merged 1 commit into
socketio:examples/private-messaging-part-4from
MeeeeetShah:examples/private-messaging-part-4
May 29, 2026
Merged

Update messageStore.js to fix Issue:It it duplicating the self messag…#5341
darrachequesne merged 1 commit into
socketio:examples/private-messaging-part-4from
MeeeeetShah:examples/private-messaging-part-4

Conversation

@MeeeeetShah

Copy link
Copy Markdown
Contributor

…es after refreshing the window in examples/private messages #5340

The kind of change this PR does introduce

  • a bug fix
  • a new feature
  • an update to the documentation
  • a code change that improves performance
  • other

Current behavior

It's duplicate the message in redis store for self messages due to no condition checks

New behavior

It resolved by just adding a simple condition

Other information (e.g. related issues)

…es after refreshing the window in examples/private messages socketio#5340
@darrachequesne darrachequesne merged commit 5a60fd2 into socketio:examples/private-messaging-part-4 May 29, 2026
@darrachequesne

Copy link
Copy Markdown
Member

Awesome, thanks! (and sorry for the delay)

darrachequesne pushed a commit that referenced this pull request May 29, 2026
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