aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2022-03-19 17:25:29 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2022-03-19 17:25:29 +0100
commita2567049c4088ec78a770ff4b460a96ceb3943b2 (patch)
treec5acbb6b4a040f72e4c2e826102b17d09fe7c8f4
parent7293cd91dfa15e290d01952b4f4d51fe6ec46f25 (diff)
downloadlibgnunetchat-a2567049c4088ec78a770ff4b460a96ceb3943b2.tar.gz
libgnunetchat-a2567049c4088ec78a770ff4b460a96ceb3943b2.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 7b2303f..b8213e7 100644
--- a/src/gnunet_chat_lib.c
+++ b/src/gnunet_chat_lib.c
@@ -1185,6 +1185,8 @@ GNUNET_CHAT_message_get_kind (const struct GNUNET_CHAT_Message *message)
1185 return GNUNET_CHAT_KIND_TEXT; 1185 return GNUNET_CHAT_KIND_TEXT;
1186 case GNUNET_MESSENGER_KIND_FILE: 1186 case GNUNET_MESSENGER_KIND_FILE:
1187 return GNUNET_CHAT_KIND_FILE; 1187 return GNUNET_CHAT_KIND_FILE;
1188 case GNUNET_MESSENGER_KIND_PRIVATE:
1189 return GNUNET_CHAT_KIND_WHISPER;
1188 case GNUNET_MESSENGER_KIND_DELETE: 1190 case GNUNET_MESSENGER_KIND_DELETE:
1189 return GNUNET_CHAT_KIND_DELETION; 1191 return GNUNET_CHAT_KIND_DELETION;
1190 default: 1192 default: