1
0
Fork 0
forked from blue/squawk

now it's possible to fix your messages

This commit is contained in:
Blue 2022-03-28 23:25:33 +03:00
parent bf4a27f35d
commit 788c6ca556
Signed by untrusted user: blue
GPG key ID: 9B203B252A63EE38
13 changed files with 204 additions and 85 deletions

View file

@ -404,7 +404,9 @@ bool Shared::Message::change(const QMap<QString, QVariant>& data)
correctionDate = QDateTime::currentDateTimeUtc(); //in case there is no information about time of this correction it's applied
}
if (!edited || lastModified < correctionDate) {
originalMessage = body;
if (!edited) {
originalMessage = body;
}
lastModified = correctionDate;
setBody(b);
setEdited(true);