Don't override ProfMessage Id with origin-id

Profanity sends the same value for both. Other clients might not.
Safe both since we could need them later.

Once we implement Last Message Correction we will need the regular id.
If we override it with origin-id and another client chooses to not use
the same value for id and origin-id then we can't interpret the id sent
with the LMC request correctly.
This commit is contained in:
Michael Vetter
2019-10-31 13:45:44 +01:00
parent 4ecd4dea6a
commit f71de61b9d
5 changed files with 49 additions and 25 deletions

View File

@@ -132,7 +132,7 @@ void message_send_gone(const char * const barejid) {}
void message_send_invite(const char * const room, const char * const contact,
const char * const reason) {}
bool message_is_sent_by_us(ProfMessage *message) {
bool message_is_sent_by_us(ProfMessage *message, bool checkOID) {
return TRUE;
}