Livestream: stop pinned comments from appearing as latest #6888

Merged
infinite-persistence merged 1 commit from ip/livestream.pin.fix into master 2021-08-17 18:09:55 +02:00
infinite-persistence commented 2021-08-16 13:20:27 +02:00 (Migrated from github.com)

Ticket

Closes #6879: Previously pinned livestream comments show as latest

Issue

comment.List will always display the pinned comment first, hence the problem when the chat is refreshed.

Approach

Completely split pinned comments from top-level comments in the Reducer, and the let the GUI (e.g. regular comments, livestream comments) decide how they want to display it.

For the case of livestream, there is no need to repeat the pinned comments in the regular chat area, since there is a dedicated area on top.

## Ticket Closes [#6879: Previously pinned livestream comments show as latest](https://github.com/lbryio/lbry-desktop/issues/6879) ## Issue `comment.List` will always display the pinned comment first, hence the problem when the chat is refreshed. ## Approach Completely split pinned comments from top-level comments in the Reducer, and the let the GUI (e.g. regular comments, livestream comments) decide how they want to display it. For the case of livestream, there is no need to repeat the pinned comments in the regular chat area, since there is a dedicated area on top.
tzarebczan (Migrated from github.com) reviewed 2021-08-16 13:20:27 +02:00
tzarebczan commented 2021-08-17 18:09:16 +02:00 (Migrated from github.com)

LGTM!
It is kind of strange that the other pinned comments disappear from the list, but I think that's okay / kind of expected.

LGTM! It is kind of strange that the other pinned comments disappear from the list, but I think that's okay / kind of expected.
infinite-persistence commented 2021-08-18 04:51:23 +02:00 (Migrated from github.com)

Yeah, it's kind of all-or-nothing for now until comment.List has the ability to not float pinned comments to the top, so that it'll be in the correct sort order. Briefly discussed in v3 pagination.

Yeah, it's kind of all-or-nothing for now until `comment.List` has the ability to not float pinned comments to the top, so that it'll be in the correct sort order. Briefly discussed in v3 pagination.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#6888
No description provided.