improve messaging federation #8453
Labels
🐛Bug
Unexpected behavior
💬Discussion
Being discussed or needs discussion
🌌Federation
The Federation/ActivityPub feature
💡 Summary
Currently, Misskey chat messages are delivered the same as direct/
specified
notes. To differentiate chat messages, Misskey only adds a non-standard_misskey_talk
key to the messages which signifies to other Misskey instances, that a message is supposed to be a chat message (see implementation). This means they can be easily federated to other activitypub software, even if they do not have a chat feature (e.g. Mastodon) or implement it differently (e.g. Pleroma).However, this could be problematic, because if the message shows up as a direct note on the other side, the user could interact with it as with a normal note. This includes for example adding another person to the message with an @ mention. Misskey can not handle this correctly. Even without breaking Misskey, due to e.g. Mastodon not understanding the Activity fully, the user experience is poor. For example:
🥰 Expected Behavior
Replies are delivered correctly, even if the other user does something unexpected. Replies are rendered as appropriate for a chat.
🤬 Actual Behavior
Replies may not be delivered at all. Replies may be rendered weirdly.
📝 Steps to Reproduce
📌 Environment
Misskey version: 12.108.1
🔧 Proposed solution
I think these problems could be resolved by adopting the same federation behaviour as Pleroma, which is described in their documentation. In summary: Instead of adding non-standard
_misskey_talk
to an ordinaryNote
object, use a non-standardChatMessage
object that is separate fromNote
, and will be handled appropriately by servers that understand it.📉 disadvantages
ChatMessage
📈 advantages
The text was updated successfully, but these errors were encountered: