mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix streaming messages in topics.
This commit is contained in:
@@ -1094,7 +1094,6 @@ void EmojiListWidget::fillCloudSearchSets() {
|
||||
return;
|
||||
}
|
||||
const auto &sets = session().data().stickers().sets();
|
||||
const auto test = session().isTestMode();
|
||||
for (const auto setId : it->second) {
|
||||
const auto setIt = sets.find(setId);
|
||||
if (setIt == sets.end()) {
|
||||
|
||||
@@ -35,6 +35,9 @@ void HistoryStreamedDrafts::apply(
|
||||
PeerId fromId,
|
||||
TimeId when,
|
||||
const MTPDsendMessageTextDraftAction &data) {
|
||||
const auto replyToId = rootId
|
||||
? FullMsgId(_history->peer->id, rootId)
|
||||
: FullMsgId();
|
||||
if (!rootId) {
|
||||
rootId = Data::ForumTopic::kGeneralId;
|
||||
}
|
||||
@@ -56,6 +59,7 @@ void HistoryStreamedDrafts::apply(
|
||||
.flags = MessageFlag::Local | MessageFlag::HasReplyInfo,
|
||||
.from = fromId,
|
||||
.replyTo = {
|
||||
.messageId = replyToId,
|
||||
.topicRootId = rootId,
|
||||
},
|
||||
.date = when,
|
||||
|
||||
Reference in New Issue
Block a user