Skip to content

Instantly share code, notes, and snippets.

@wfr
Created January 17, 2017 04:56
Show Gist options
  • Save wfr/e174692fda79703177e2abcde5056bc7 to your computer and use it in GitHub Desktop.
Save wfr/e174692fda79703177e2abcde5056bc7 to your computer and use it in GitHub Desktop.
ricochet-send-duplicates.patch
diff --git a/src/core/ConversationModel.cpp b/src/core/ConversationModel.cpp
index 06969f7..fedccbb 100644
--- a/src/core/ConversationModel.cpp
+++ b/src/core/ConversationModel.cpp
@@ -111,6 +111,9 @@ void ConversationModel::sendMessage(const QString &text)
message.status = Error;
message.identifier = id;
message.attemptCount++;
+
+ // DEBUGGING ONLY: send identical message twice to test issue #515
+ channel->sendChatMessageWithId(text, QDateTime(), id);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment