plugin: hidden conversation

Eion Robb eion at robbmob.com
Wed Mar 1 19:19:11 EST 2017


Hi Markus,

Pidgin has the concept of a 'hidden conversation window' that it uses for
conversation that you've hidden (eg, you've marked a chat as persistent in
the buddy list, then closed the conversation window) - looking through
pidgin/gtkconv.c shows some other cases of when the conversation is added
to the hidden conversation window.

Unfortunately there's no public api that would let you move a conversation
to the hidden conversation window, but messing around with the
"/conversations/im/hide_new" setting may let you change where the
conversation ends up when the received-im-msg is fired when your particular
message is received.

Is your source code online anywhere?  Sounds like an interesting plugin and
I'd love to take a look :)

Cheers,
Eion

On 2 March 2017 at 01:43, Markus Teich <teichm-eyxs at fs.tum.de> wrote:

> Heyho,
>
> I am currently writing a plugin which needs to exchange metadata-messages
> between pairs of participants in a chat. I figured out how to hide those
> messages so they won't bother the user, but I was not able to find a way to
> prevent pidgin from spawning a new tab in the conversation window.
>
> Currently in the "chat-buddy-joined" handler I try to find an existing
> conversation with the respective user with
> `purple_find_conversation_with_account` and in case there is none yet, I
> create
> it `with purple_conversation_new`. Then I use `purple_conv_im_send_with_
> flags`
> using the PURPLE_MESSAGE_INVISIBLE flag to send the first
> metadata-message. Can
> I prevent popping up a convesation tab/window in the GTK frontend for the
> sender
> AND receiver?
>
> I'm using pidgin v2.11.0.
>
> --Markus
>
> _______________________________________________
> Devel mailing list
> Devel at pidgin.im
> https://pidgin.im/cgi-bin/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pidgin.im/pipermail/devel/attachments/20170302/916bb606/attachment.html>


More information about the Devel mailing list