Message List: Fix marking channel posts as pinned
This commit is contained in:
parent
9753b346dd
commit
2b20908ff7
@ -1312,7 +1312,7 @@ export default memo(withGlobal<OwnProps>(
|
|||||||
} = ownProps;
|
} = ownProps;
|
||||||
const {
|
const {
|
||||||
id, chatId, viaBotId, replyToChatId, replyToMessageId, isOutgoing, repliesThreadInfo, forwardInfo,
|
id, chatId, viaBotId, replyToChatId, replyToMessageId, isOutgoing, repliesThreadInfo, forwardInfo,
|
||||||
transcriptionId,
|
transcriptionId, isPinned,
|
||||||
} = message;
|
} = message;
|
||||||
|
|
||||||
const chat = selectChat(global, chatId);
|
const chat = selectChat(global, chatId);
|
||||||
@ -1426,7 +1426,7 @@ export default memo(withGlobal<OwnProps>(
|
|||||||
threadId,
|
threadId,
|
||||||
isDownloading,
|
isDownloading,
|
||||||
isPinnedList: messageListType === 'pinned',
|
isPinnedList: messageListType === 'pinned',
|
||||||
isPinned: message.isPinned || Boolean(message.forwardInfo?.isLinkedChannelPost),
|
isPinned,
|
||||||
canAutoLoadMedia: selectCanAutoLoadMedia(global, message),
|
canAutoLoadMedia: selectCanAutoLoadMedia(global, message),
|
||||||
canAutoPlayMedia: selectCanAutoPlayMedia(global, message),
|
canAutoPlayMedia: selectCanAutoPlayMedia(global, message),
|
||||||
autoLoadFileMaxSizeMb: global.settings.byKey.autoLoadFileMaxSizeMb,
|
autoLoadFileMaxSizeMb: global.settings.byKey.autoLoadFileMaxSizeMb,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user