mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-05 09:05:14 +00:00
Fix possible race conditions in msgid().
This commit is contained in:
@@ -22,6 +22,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "history/history_item_components.h"
|
||||
#include "history/history_item.h"
|
||||
#include "history/history.h"
|
||||
#include "base/unixtime.h"
|
||||
#include "data/data_channel.h"
|
||||
#include "data/data_user.h"
|
||||
#include "data/data_folder.h"
|
||||
@@ -639,11 +640,13 @@ void RowPainter::paint(
|
||||
if (cloudDraft) {
|
||||
return (item->date() > cloudDraft->date)
|
||||
? ItemDateTime(item)
|
||||
: ParseDateTime(cloudDraft->date);
|
||||
: base::unixtime::parse(cloudDraft->date);
|
||||
}
|
||||
return ItemDateTime(item);
|
||||
}
|
||||
return cloudDraft ? ParseDateTime(cloudDraft->date) : QDateTime();
|
||||
return cloudDraft
|
||||
? base::unixtime::parse(cloudDraft->date)
|
||||
: QDateTime();
|
||||
}();
|
||||
const auto displayMentionBadge = history
|
||||
? history->hasUnreadMentions()
|
||||
|
Reference in New Issue
Block a user