diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-10-31 13:45:44 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-10-31 13:45:44 +0100 |
commit | f71de61b9dc297d111a4ab2ccc77238251659574 (patch) | |
tree | 10303d1cb8565fcf05ebf5daaab7dca2c0748c30 /tests | |
parent | 4ecd4dea6a0a4c216a57d039dc7dc01d5e41d68a (diff) | |
download | profani-tty-f71de61b9dc297d111a4ab2ccc77238251659574.tar.gz |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unittests/xmpp/stub_xmpp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unittests/xmpp/stub_xmpp.c b/tests/unittests/xmpp/stub_xmpp.c index 85c12667..a9b45321 100644 --- a/tests/unittests/xmpp/stub_xmpp.c +++ b/tests/unittests/xmpp/stub_xmpp.c @@ -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; } |