Message: Fix albums are not marked read
This commit is contained in:
parent
b29d4958ee
commit
0c65c7a4fd
@ -671,7 +671,6 @@ const Message: FC<OwnProps & StateProps & DispatchProps> = ({
|
|||||||
// @ts-ignore teact feature
|
// @ts-ignore teact feature
|
||||||
style={metaSafeAuthorWidth ? `--meta-safe-author-width: ${metaSafeAuthorWidth}px` : undefined}
|
style={metaSafeAuthorWidth ? `--meta-safe-author-width: ${metaSafeAuthorWidth}px` : undefined}
|
||||||
data-message-id={messageId}
|
data-message-id={messageId}
|
||||||
data-last-message-id={album ? album.messages[album.messages.length - 1].id : undefined}
|
|
||||||
onClick={isInSelectMode ? handleMessageSelect : undefined}
|
onClick={isInSelectMode ? handleMessageSelect : undefined}
|
||||||
onDoubleClick={!isInSelectMode ? handleContainerDoubleClick : undefined}
|
onDoubleClick={!isInSelectMode ? handleContainerDoubleClick : undefined}
|
||||||
onMouseDown={!isInSelectMode ? handleBeforeContextMenu : undefined}
|
onMouseDown={!isInSelectMode ? handleBeforeContextMenu : undefined}
|
||||||
@ -683,6 +682,7 @@ const Message: FC<OwnProps & StateProps & DispatchProps> = ({
|
|||||||
ref={bottomMarkerRef}
|
ref={bottomMarkerRef}
|
||||||
className="bottom-marker"
|
className="bottom-marker"
|
||||||
data-message-id={messageId}
|
data-message-id={messageId}
|
||||||
|
data-last-message-id={album ? album.messages[album.messages.length - 1].id : undefined}
|
||||||
data-has-unread-mention={message.hasUnreadMention}
|
data-has-unread-mention={message.hasUnreadMention}
|
||||||
/>
|
/>
|
||||||
{!isInDocumentGroup && (
|
{!isInDocumentGroup && (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user