aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2022-03-19 17:25:29 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2022-03-20 14:13:19 +0100
commit69176480c5ff9faad872d2aad68a5780c2f364b5 (patch)
tree6006348102c230e5b14e6d2418a8f0b01612a111
parentae0d27195aacfe0a5695218c42580d1b37a1c42b (diff)
downloadlibgnunetchat-69176480c5ff9faad872d2aad68a5780c2f364b5.tar.gz
libgnunetchat-69176480c5ff9faad872d2aad68a5780c2f364b5.zip
Add private messages as whispering
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r--include/gnunet_chat_lib.h7
-rw-r--r--src/gnunet_chat_lib.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/include/gnunet_chat_lib.h b/include/gnunet_chat_lib.h
index 91cd9b6..6610f59 100644
--- a/include/gnunet_chat_lib.h
+++ b/include/gnunet_chat_lib.h
@@ -97,9 +97,14 @@ enum GNUNET_CHAT_MessageKind
97 GNUNET_CHAT_KIND_FILE = 10, /**< GNUNET_CHAT_KIND_FILE */ 97 GNUNET_CHAT_KIND_FILE = 10, /**< GNUNET_CHAT_KIND_FILE */
98 98
99 /** 99 /**
100 * The kind to describe a whispered message.
101 */
102 GNUNET_CHAT_KIND_WHISPER = 11, /**< GNUNET_CHAT_KIND_WHISPER */
103
104 /**
100 * The kind to inform about a deletion of a previous message. 105 * The kind to inform about a deletion of a previous message.
101 */ 106 */
102 GNUNET_CHAT_KIND_DELETION = 11, /**< GNUNET_CHAT_KIND_DELETION */ 107 GNUNET_CHAT_KIND_DELETION = 12, /**< GNUNET_CHAT_KIND_DELETION */
103 108
104 /** 109 /**
105 * An unknown kind of message. 110 * An unknown kind of message.
diff --git a/src/gnunet_chat_lib.c b/src/gnunet_chat_lib.c
index fd82ba3..2632fb5 100644
--- a/src/gnunet_chat_lib.c
+++ b/src/gnunet_chat_lib.c
@@ -1169,6 +1169,8 @@ GNUNET_CHAT_message_get_kind (const struct GNUNET_CHAT_Message *message)
1169 return GNUNET_CHAT_KIND_TEXT; 1169 return GNUNET_CHAT_KIND_TEXT;
1170 case GNUNET_MESSENGER_KIND_FILE: 1170 case GNUNET_MESSENGER_KIND_FILE:
1171 return GNUNET_CHAT_KIND_FILE; 1171 return GNUNET_CHAT_KIND_FILE;
1172 case GNUNET_MESSENGER_KIND_PRIVATE:
1173 return GNUNET_CHAT_KIND_WHISPER;
1172 case GNUNET_MESSENGER_KIND_DELETE: 1174 case GNUNET_MESSENGER_KIND_DELETE:
1173 return GNUNET_CHAT_KIND_DELETION; 1175 return GNUNET_CHAT_KIND_DELETION;
1174 default: 1176 default: