pidgin: 0257ab6e: Set PURPLE_MESSAGE_RECV before receiving...

Daniel Atallah daniel.atallah at gmail.com
Mon Apr 6 08:25:02 EDT 2009


On Mon, Apr 6, 2009 at 6:40 AM,  <wabz at pidgin.im> wrote:
> -----------------------------------------------------------------
> Revision: 0257ab6e534144a7fd317f997e1f0e19ff8bd82b
> Ancestor: a0d9c8509c017c1eb52b8b3e1172e9d0ee0b0a51
> Author: wabz at pidgin.im
> Date: 2009-04-06T10:33:28
> Branch: im.pidgin.pidgin
> URL: http://d.pidgin.im/viewmtn/revision/info/0257ab6e534144a7fd317f997e1f0e19ff8bd82b
>
> Modified files:
>        libpurple/server.c
>
> ChangeLog:
>
> Set PURPLE_MESSAGE_RECV before receiving-im-msg. Also set it when receiving chat messages.
>
>
> ============================================================
> --- libpurple/server.c  b9c6a880738b280c7302dd352dfe947ee3f7101e
> +++ libpurple/server.c  3765f51e4eaa8ab0a6b533e07c639497950eb605
> @@ -925,6 +925,12 @@ void serv_got_chat_in(PurpleConnection *
>        g_return_if_fail(who != NULL);
>        g_return_if_fail(message != NULL);
>
> +       /*
> +        * XXX: Should we be setting this here, or relying on prpls to set it?
> +        */
> +       if (g_strcmp0(purple_account_get_username(g->account), who))
> +               flags |= PURPLE_MESSAGE_RECV;
> +
>        for (bcs = g->buddy_chats; bcs != NULL; bcs = bcs->next) {
>                conv = (PurpleConversation *)bcs->data;
>

I don't think this part is necessarily right - "who" may not be your
account username when you're sending a message (e.g. in an XMPP
conference).

-D




More information about the Devel mailing list