Commit d41dba63 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fixed message stored one time in clear and one time encrypted if using...

Fixed message stored one time in clear and one time encrypted if using asynchronism while encrypting
parent eaa7804d
......@@ -582,7 +582,7 @@ void ChatMessagePrivate::send () {
currentSendStep |= ChatMessagePrivate::Step::Started;
if (toBeStored)
if (toBeStored || currentSendStep == (ChatMessagePrivate::Step::Started | ChatMessagePrivate::Step::None))
storeInDb();
if ((currentSendStep & ChatMessagePrivate::Step::FileUpload) == ChatMessagePrivate::Step::FileUpload) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment