message.c: Check for message type

RFC 6121 allows only few types.
So we can also remove that check in _handle_chat().
This commit is contained in:
Michael Vetter
2020-07-02 17:40:58 +02:00
parent 19d9e80a79
commit 46a00317ee
2 changed files with 5 additions and 8 deletions

View File

@@ -135,6 +135,7 @@
#define STANZA_TYPE_CHAT "chat"
#define STANZA_TYPE_GROUPCHAT "groupchat"
#define STANZA_TYPE_HEADLINE "headline"
#define STANZA_TYPE_NORMAL "normal"
#define STANZA_TYPE_UNAVAILABLE "unavailable"
#define STANZA_TYPE_SUBSCRIBE "subscribe"
#define STANZA_TYPE_SUBSCRIBED "subscribed"