First blog post in awhile... It started as some random musing about how we'd go about enabling someone to display stuff like Mastodon and Twitter feeds in @pidgin 3 and turned into how we'd use message reactions to like YouTube videos :)

https://dev.to/grim/random-thoughts-on-implementing-reactions-cg0 #blog #pidgin #universalchat

Random Thoughts on Implementing Reactions

I was randomly thinking of how we'd integrate stuff like Mastodon, Twitter, Facebook posts, YouTube...

DEV Community
@grimmy @pidgin So, it sounds to me like a universal reaction object that the protocol would be able to establish the rules for and the client would receive the available options it's allow to access?
@scarodj @pidgin Not quite. I debated putting API ideas in the blog post but decided against it.. But the ui will ask the the protocol for which reactions are available on the given message. It'll display that list to the user, the user picks one then the ui tells the protocol that the user selected it. The protocol tells the server (if there is one) and then updates the message to add the reason. Similar for removing a reaction, it just wouldn't have the user selecting one from a list.