mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
@@ -3132,6 +3132,7 @@ void ApiWrap::sharedMediaDone(
|
|||||||
if (topicRootId && !topic) {
|
if (topicRootId && !topic) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
const auto hasMessages = !parsed.messageIds.empty();
|
||||||
_session->storage().add(Storage::SharedMediaAddSlice(
|
_session->storage().add(Storage::SharedMediaAddSlice(
|
||||||
peer->id,
|
peer->id,
|
||||||
topicRootId,
|
topicRootId,
|
||||||
@@ -3140,7 +3141,7 @@ void ApiWrap::sharedMediaDone(
|
|||||||
parsed.noSkipRange,
|
parsed.noSkipRange,
|
||||||
parsed.fullCount
|
parsed.fullCount
|
||||||
));
|
));
|
||||||
if (type == SharedMediaType::Pinned && !parsed.messageIds.empty()) {
|
if (type == SharedMediaType::Pinned && hasMessages) {
|
||||||
peer->owner().history(peer)->setHasPinnedMessages(true);
|
peer->owner().history(peer)->setHasPinnedMessages(true);
|
||||||
if (topic) {
|
if (topic) {
|
||||||
topic->setHasPinnedMessages(true);
|
topic->setHasPinnedMessages(true);
|
||||||
|
Reference in New Issue
Block a user