Parse stanza-id
Add stable stanza IDs to ProfMessage struct. We parse this for 1:1 messages (MUC needs to be done too). <stanza-id> for live messages <result id="x"> for MAM messages Regards MAM: https://github.com/profanity-im/profanity/issues/660 Regards Stable IDs: https://github.com/profanity-im/profanity/issues/1207
This commit is contained in:
@@ -155,7 +155,10 @@ typedef struct prof_message_t
|
||||
char* originid;
|
||||
/* <replace id> XEP-0308 LMC */
|
||||
char* replace_id;
|
||||
/* for MAM we will need archive_id (stanza-id in XEP-0359) (see database.c) */
|
||||
/* stanza-id from XEP 0359. Used for MAM. archive_id in our database (see database.c)
|
||||
* coming in as <stanza-id> for live messages
|
||||
* coming in as <result id=""> for MAM messages*/
|
||||
char *stanzaid;
|
||||
/* The raw body from xmpp message, either plaintext or OTR encrypted text */
|
||||
char* body;
|
||||
/* The encrypted message as for PGP */
|
||||
|
||||
Reference in New Issue
Block a user