summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordx <dx@dxzone.com.ar>2017-02-23 00:44:26 -0300
committerdx <dx@dxzone.com.ar>2017-02-23 00:44:26 -0300
commit55c60b01e920586886bcda86f3e9a30446c97561 (patch)
treea06971712939f857942498ac97e9e118591d4f59
parent229656ecfaa996a439c746a725eaa338a1fef1e6 (diff)
downloadpidgin-55c60b01e920586886bcda86f3e9a30446c97561.tar.gz
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.
-rw-r--r--ChangeLog.API6
-rw-r--r--libpurple/conversation.h5
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog.API b/ChangeLog.API
index 422513869c..3dcddd75cd 100644
--- a/ChangeLog.API
+++ b/ChangeLog.API
@@ -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:
diff --git a/libpurple/conversation.h b/libpurple/conversation.h
index af2efdf20d..46622518cf 100644
--- a/libpurple/conversation.h
+++ b/libpurple/conversation.h
@@ -126,7 +126,10 @@ typedef enum
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;
/**