mautrix / slack

A Matrix-Slack puppeting bridge
GNU Affero General Public License v3.0
61 stars 17 forks source link

Threaded messages are unreliable #18

Closed hooger closed 1 year ago

hooger commented 1 year ago

Hello,

I have trouble with threaded messages. I have varying experience, not sure what may be the cause. I have seen #14 but not sure what is the trigger. I made two tests, the first in a general room with multiple other actors. I generally don't receive messages sent as replies. I sent one from the slack web client as a thread reply, with the "Also send to #channel" not checked. I had the following log entries triggered by the event:

Feb 10 08:41:14 matrix matrix-mautrix-slack[3740744]: [Feb 10, 2023 08:41:14] [User/@gergely:horvath.club/WARN] unknown message {unmarshalling_error RTM Error: Received unmapped event "thread_subscribed"}
Feb 10 08:41:14 matrix matrix-mautrix-slack[3740744]: [Feb 10, 2023 08:41:14] [User/@gergely:horvath.club/WARN] unknown message {pref_change 0xc0005c2740}
Feb 10 08:41:14 matrix matrix-mautrix-slack[3740744]: [Feb 10, 2023 08:41:14] [User/@gergely:horvath.club/WARN] unknown message {unmarshalling_error RTM Error: Received unmapped event "update_thread_state"}
Feb 10 08:41:14 matrix matrix-mautrix-slack[3740744]: [Feb 10, 2023 08:41:14] [User/@gergely:horvath.club/WARN] unknown message {unmarshalling_error RTM Error: Received unmapped event "update_thread_state"}

I also started a chat with myself (called Slack bridge bot on the matrix side). Here the option is called "Also send as direct message". When unticked, threaded messages arrive in threads! However when the option is ticked, messages are lost, with the following log entries:

Feb 10 09:00:56 matrix matrix-mautrix-slack[3740744]: [Feb 10, 2023 09:00:56] [User/@gergely:horvath.club/WARN] unknown message {im_marked 0xc0004795c0}
Feb 10 09:00:56 matrix matrix-mautrix-slack[3740744]: [Feb 10, 2023 09:00:56] [User/@gergely:horvath.club/WARN] unknown message {unmarshalling_error RTM Error: Received unmapped event "thread_marked"}
Feb 10 09:00:56 matrix matrix-mautrix-slack[3740744]: [Feb 10, 2023 09:00:56] [User/@gergely:horvath.club/WARN] unknown message {unmarshalling_error RTM Error: Received unmapped event "update_thread_state"}

Would you be so kind to look into this issue? As replies in Slack arrive in threads, I'm missing on big part of the conversation currently. Thanks in advance!

hooger commented 1 year ago

Okay, the first message actually did arrived, I just haven't seen it as Element does not tell me when to check the threads. However in the room to myself, I still don't see the message, but that is a duplicate of #14. Closing this issue.