Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM messages from Web client show up as DMs from myself or not showing at all. #572

Open
dodys opened this issue Feb 7, 2024 · 5 comments

Comments

@dodys
Copy link

dodys commented Feb 7, 2024

This issue has been happening for a long time, way before I moved to the docker image of matterircd.

Whenever I have my IRC client connected to matterircd via znc and for some reason I try to reply to a DM in Mattermost Web client, instead through the bridge, I receive my message as coming from myself instead of appearing in the open DM with such person.
Also if the IRC client is closed and I'm only using the Mattermost Web client to exchange DMs, whenever I start the IRC client again I see all the DMs I received, but not my own sent messages in such DM.

This only happens in DMs, not an issue with channels.

Let me know about configuring debugging so I can upload logs

@hloeung
Copy link
Collaborator

hloeung commented Feb 29, 2024

Are you able to try this with the IRC client directly connected to matterircd? This is to take znc out of the loop.

@hloeung
Copy link
Collaborator

hloeung commented Feb 29, 2024

Searching through various matterircd bugs for ZNC, I found this one which might be the same thing you're running into? #296

Also, it references the upstream bug against ZNC znc/znc#1638

@dodys
Copy link
Author

dodys commented Mar 1, 2024

Are you able to try this with the IRC client directly connected to matterircd? This is to take znc out of the loop.

yes, same happen if connected directly to matterircd:

  1. if the irc client is disconnected from matterircd (with or without znc) any DM sent via the Web client does not appear after connecting to matterircd.
  2. if the irc client is connected to matterircd (with or without znc) and DM sent via the Web client shows up as a DM from myself.

@dodys
Copy link
Author

dodys commented Mar 1, 2024

btw, I forgot to mention but the irc client currently being used is hexchat.

@hloeung
Copy link
Collaborator

hloeung commented Mar 10, 2024

  1. if the irc client is disconnected from matterircd (with or without znc) any DM sent via the Web client does not appear after connecting to matterircd.

I think I know why this is happening.

When you use the web client, it updates the server on the last seen, so on reconnecting, the reply works this out and uses the server's known rather than what's stored to show list of messages missed. This is in the lines of code below:

https://github.com/42wim/matterircd/blob/master/mm-go-irckit/userbridge.go#L683

You could comment out that if block, compile, and run a matterircd instance to confirm.

  1. if the irc client is connected to matterircd (with or without znc) and DM sent via the Web client shows up as a DM from myself.

Interesting. Any chance you could provide DEBUG/TRACE logging output?

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

No branches or pull requests

2 participants