2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fix possible race conditions in msgid().

This commit is contained in:
John Preston
2019-07-10 19:28:33 +02:00
parent 68b1024dd4
commit c5df4db621
63 changed files with 513 additions and 391 deletions

View File

@@ -18,6 +18,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "history/history_message.h"
#include "lang/lang_keys.h"
#include "data/data_session.h"
#include "base/unixtime.h"
#include "auth_session.h"
#include "apiwrap.h"
#include "styles/style_chat_helpers.h"
@@ -278,7 +279,7 @@ AdminLog::OwnedItem GenerateCommentItem(
flags,
replyTo,
viaBotId,
unixtime(),
base::unixtime::now(),
history->session().userId(),
QString(),
TextWithEntities{ TextUtilities::Clean(data.comment) });
@@ -302,7 +303,7 @@ AdminLog::OwnedItem GenerateContactItem(
MTPMessageFwdHeader(),
MTP_int(viaBotId),
MTP_int(replyTo),
MTP_int(unixtime()),
MTP_int(base::unixtime::now()),
MTP_string(),
MTP_messageMediaContact(
MTP_string(data.phone),