-
Notifications
You must be signed in to change notification settings - Fork 22
Mark new FB rooms as Direct Chats on Matrix by default #4
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
Comments
Oh yeah are you aware if this is something we can do? |
This is definitely something you can do, as matrix-appservice-irc does it. The question is just 'how'. |
We looked into this yesterday and discovered it's a matter of defining |
I've just been looking through the code to see if I can do anything about this as this is the main annoyance to me that is why I haven't moved away from my bitlbee based system (not the only one, just the main one). If my understanding of both of those is correct, then I can't see any feasible point in the process for matrix-puppet-facebook to mark the room as direct. Not unless you mark them as direct every single time a new message is sent/received in a particular room, but then the user has no control over it anymore because the next message is just going to completely undo any change the user makes. Aside from that kind of quick-and-dirty option, I believe this would require a change in the matrix-puppet-bridge library such that the getOrCreateMatrixRoomFromThirdPartyRoomId function would need to somehow be told whether it's a direct or group conversation so that it could do something about that at room creation time. At that point you could set the is_direct parameter when calling createRoom(). Perhaps also set the name of the room at this point? |
#31 is relevant here. This is kinda-sorta a duplicate, but more limited in scope. |
Looks like the intended approach there will solve this problem, although apparently that has already been pushed so this should already be happening, yet I'm still seeing the bot joining all new rooms. |
So, I changed the code such that the is_direct value will eventually get passed to the createRoom call, and it kinda worked. New 1:1 conversations appeared as direct chat rooms, however only stayed there for a moment before switching back to a group room. Probably going to be another week or so before I try again, just dumping notes here for future me more than anything else |
This would make sense, since Facebook chats are usually 1-1 direct chats. Then Riot will display the Matrix room under the "People" tab, which makes it useful for finding the new room.
The text was updated successfully, but these errors were encountered: