Ignore:
Timestamp:
2018-03-19T03:22:22Z (7 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
4528a52
Parents:
686ac51
Message:

purple: support PURPLE_MESSAGE_REMOTE_SEND for groupchat self-messages

Requires libpurple 2.12.0

Mostly relevant recently with slack-libpurple.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/purple/purple.c

    r686ac51 r7a99a0c  
    3131#include <purple.h>
    3232
     33#if !PURPLE_VERSION_CHECK(2, 12, 0)
     34#define PURPLE_MESSAGE_REMOTE_SEND 0x10000
     35#endif
     36
    3337GSList *purple_connections;
    3438
     
    12041208static void prplcb_conv_msg(PurpleConversation *conv, const char *who, const char *message, PurpleMessageFlags flags, time_t mtime)
    12051209{
    1206         if ((!(flags & PURPLE_MESSAGE_SEND)) || (flags & PURPLE_MESSAGE_DELAYED)) {
     1210        if ((!(flags & PURPLE_MESSAGE_SEND)) ||
     1211            (flags & PURPLE_MESSAGE_DELAYED) ||
     1212            (flags & PURPLE_MESSAGE_REMOTE_SEND)
     1213        ) {
    12071214                handle_conv_msg(conv, who, message, (flags & PURPLE_MESSAGE_SEND) ? OPT_SELFMESSAGE : 0, mtime);
    12081215        }
Note: See TracChangeset for help on using the changeset viewer.