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) |
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 GNUNET_CHAT_KIND_FILE = 10, /**< GNUNET_CHAT_KIND_FILE */ /** + * The kind to describe a whispered message. + */ + GNUNET_CHAT_KIND_WHISPER = 11, /**< GNUNET_CHAT_KIND_WHISPER */ + + /** * The kind to inform about a deletion of a previous message. */ - GNUNET_CHAT_KIND_DELETION = 11, /**< GNUNET_CHAT_KIND_DELETION */ + GNUNET_CHAT_KIND_DELETION = 12, /**< GNUNET_CHAT_KIND_DELETION */ /** * 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) return GNUNET_CHAT_KIND_TEXT; case GNUNET_MESSENGER_KIND_FILE: return GNUNET_CHAT_KIND_FILE; + case GNUNET_MESSENGER_KIND_PRIVATE: + return GNUNET_CHAT_KIND_WHISPER; case GNUNET_MESSENGER_KIND_DELETE: return GNUNET_CHAT_KIND_DELETION; default: |