about summary refs log tree commit diff stats
path: root/tests/unittests
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-10-31 13:45:44 +0100
committerMichael Vetter <jubalh@iodoru.org>2019-10-31 13:45:44 +0100
commitf71de61b9dc297d111a4ab2ccc77238251659574 (patch)
tree10303d1cb8565fcf05ebf5daaab7dca2c0748c30 /tests/unittests
parent4ecd4dea6a0a4c216a57d039dc7dc01d5e41d68a (diff)
downloadprofani-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/unittests')
-rw-r--r--tests/unittests/xmpp/stub_xmpp.c2
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;
 }