Presence/aliases for transient buddies
David Woodhouse <[email protected]> Thu, 29 Jun 2017 08:54:57 +0100
| Newsgroups | gmane.comp.gnome.gaim.devel |
|---|---|
| Message-ID | <[email protected]> |
As I get further through implementing my new prpl, I come across more things I don't know how to do on the Pidgin/libpurple side. Today's conundrum... transient buddies. Pidgin creates these when I get an incoming IM from an individual not in my list. I *could* provide presence status for them, and Pidgin would display it at the top of the corresponding IM tab... except I never get to know about the buddy until my ->buddy_free() is called for it. (I did at least stop crashing when buddy->proto_data is NULL). Pidgin also creates these for users in chat rooms — and I could provide each user's alias, if I had any way to see the PurpleBuddy that got created. But again, I don't see it until it goes away and my ->buddy_free() is called for an object I've never seen before. Is there a way to deal with this? I was thinking of a new prpl method invoked from purple_buddy_new(), but I think it would still create *multiple* buddies to represent the same individual, when they are in multiple chat rooms and an IM tab. So maybe the answer is for these transient buddies to be in the main blist but with a 'HIDDEN' flag so they aren't shown in the UI buddy list? Or be part of a special hidden group? Or am I missing something that works already? _______________________________________________ Devel mailing list [email protected] https://pidgin.im/cgi-bin/mailman/listinfo/devel
smime.p7s
(application/x-pkcs7-signature, 4.8 KB) - not displayed