matrix-appservice-discord icon indicating copy to clipboard operation
matrix-appservice-discord copied to clipboard

New Thread Feature does not get mirrored

Open igeljaeger opened this issue 3 years ago • 15 comments

Discord introduced a Slack-like thread feature which obviously does not work yet, nor seems to even be possible to mirror to Element at this point. Thought I'd open an issue anyway.

igeljaeger avatar Jul 29 '21 20:07 igeljaeger

Discord-style threads are channels which have own membership. Hence they map to rooms with a restricted join rule more closely.

erkinalp avatar Jul 29 '21 20:07 erkinalp

could take a look at this when/if MSC2836 gets merged

BBaoVanC avatar Jul 29 '21 21:07 BBaoVanC

MSC2836 is threads as relations, which map to Slack style threads closer.

erkinalp avatar Jul 30 '21 06:07 erkinalp

Another idea is you could almost just create a separate room, and then link an invite or something in the chat (as a reply), but then you'd miss the part of having an organized list of what room the thread came from, which would require a new MSC or something.

BBaoVanC avatar Jul 30 '21 08:07 BBaoVanC

I have a WIP implementation in my fork, I currently don't handle deleting threads or locking and I'm sure there are some other bugs to figure out. https://github.com/Epictek/matrix-appservice-discord/tree/threads

Epictek avatar Aug 10 '21 02:08 Epictek

Matrix has threads now; although Discord threads become readonly after a while and then messages sent to the Matrix would be impossible to transfer, so it might not be the best to convert Discord threads to Matrix threads.

In any case, the bridge should do something for threaded comments - even just posting them in the main channel as-is (or better as replies to the previous comment in the thread) would be better than just silently dropping them.

tgr avatar Dec 29 '21 07:12 tgr

Discord threads become readonly after a while

That is counted after the last message, not after the initial creation.

erkinalp avatar Dec 29 '21 14:12 erkinalp

Right but nevertheless eventually you'd end up in a situation where the thread is writable on the Matrix side but readonly on the Discord side and the bridge can't sync threaded Matrix messages.

tgr avatar Dec 29 '21 20:12 tgr

@tgr: You would never encounter such a situation, as Discord handles that for you:

Sending a message will automatically unarchive the thread, unless the thread has been locked by a moderator.

erkinalp avatar Dec 29 '21 21:12 erkinalp

MSC3440 has been merged, someone please take a look at this now.

rollingmoai avatar Mar 29 '22 05:03 rollingmoai

@rollingmoai Different type of threads to Discord ones. Discord's threads correspond correspond to threads-as-rooms, whereas MSC3440 maps to Slack-style threads-as-relations.

erkinalp avatar Sep 14 '22 21:09 erkinalp

Some Discord threads are reply threads, whilst others are completely separate. Surely it's possible for at least the reply threads to be bridged?

Disclaimer: I have no idea what I am talking about

gamer191 avatar Sep 30 '22 07:09 gamer191