EionRobb / purple-teams

A MS Teams plugin for libpurple/Pidgin (3rd party client)
GNU General Public License v3.0
161 stars 12 forks source link

Accessing older messages sent via MS Teams client #54

Open nydydn opened 3 months ago

nydydn commented 3 months ago

Is it possible to access conversation messages that were sent/read in MS Teams client, in Pidgin?

EionRobb commented 3 months ago

Technically, yes. The tricky bit is knowing when to trigger it.

There's been debate over the years in other protocol plugins about the best way to go about it, eg with a "/history 50" command that might bring in the last 50 messages for a room, or if there was a way to download it only into the Pidgin logs, to then be able to do a Conversation -> History lookup (although this is trickier).

Unfortunately due to the way that protocol plugins are separated from the UI it's not always possible to know if a chat has been opened before, eg to automatically pull all history when first joining a group chat, and that's had some issues on non-Pidgin clients.

I'd love some more input on when/where the first place you went looking for history was, to see if there's an intuitive idea that we could hook into, if possible :)