diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2022-03-19 17:25:29 +0100 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2022-03-20 14:13:19 +0100 |
commit | 69176480c5ff9faad872d2aad68a5780c2f364b5 (patch) | |
tree | 6006348102c230e5b14e6d2418a8f0b01612a111 | |
parent | ae0d27195aacfe0a5695218c42580d1b37a1c42b (diff) | |
download | libgnunetchat-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.h | 7 | ||||
-rw-r--r-- | src/gnunet_chat_lib.c | 2 |
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: |