pidgin/pidgin

c0d8d2d1497a
Parents 31ecbdda7ff3
Children 274575856b52
Add PURPLE_MESSAGE_REMOTE_SEND flag to PurpleMessageFlags

Specifies messages like _SEND that were sent from another location, and are
not echoes.

This allows the UI to distinguish them from groupchat outgoing messages, since
those always result in a serv_got_chat_in() call which writes to the
conversation with the PURPLE_MESSAGE_SEND flag, because that's needed to
display outgoing messages in UIs like pidgin, but some UIs behave differently.
--- a/ChangeLog.API Wed Feb 22 12:50:51 2017 -0300
+++ b/ChangeLog.API Thu Feb 23 00:44:26 2017 -0300
@@ -1,5 +1,11 @@
Pidgin and Finch: The Pimpin' Penguin IM Clients That're Good for the Soul
+version 2.12.0:
+ libpurple:
+ Added:
+ * PURPLE_MESSAGE_REMOTE_SEND in PurpleMessageFlags, to specify
+ messages like _SEND that were sent from another location.
+
version 2.11.0:
libpurple:
Added:
--- a/libpurple/conversation.h Wed Feb 22 12:50:51 2017 -0300
+++ b/libpurple/conversation.h Thu Feb 23 00:44:26 2017 -0300
@@ -126,7 +126,10 @@
PURPLE_MESSAGE_NOTIFY = 0x2000, /**< Message is a notification */
PURPLE_MESSAGE_NO_LINKIFY = 0x4000, /**< Message should not be auto-
linkified @since 2.1.0 */
- PURPLE_MESSAGE_INVISIBLE = 0x8000 /**< Message should not be displayed */
+ PURPLE_MESSAGE_INVISIBLE = 0x8000, /**< Message should not be displayed */
+ PURPLE_MESSAGE_REMOTE_SEND = 0x10000 /**< Message sent from another location,
+ not an echo of a local one
+ @since 2.12.0 */
} PurpleMessageFlags;
/**