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