Fixed scrolling to end when media is replaced.

This commit is contained in:
23rd
2022-12-08 20:18:07 +03:00
parent b4a7d98fa0
commit 66926ba25e
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -3055,7 +3055,7 @@ void ApiWrap::sharedMediaDone(
}
void ApiWrap::sendAction(const SendAction &action) {
if (!action.options.scheduled) {
if (!action.options.scheduled && !action.replaceMediaOf) {
const auto topic = action.topicRootId
? action.history->peer->forumTopicFor(action.topicRootId)
: nullptr;