Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug/new/unread message indicator sometimes missing #1653

Merged
merged 3 commits into from
Jul 24, 2023
Merged

Conversation

Kacper-RF
Copy link
Contributor

No description provided.

@@ -23,7 +25,15 @@ export function* markUnreadChannelsSaga(

const statuses = yield* select(publicChannelsSelectors.channelsStatus)

const joinTimestamp = yield* select(identitySelectors.joinTimestamp)
// Fix for users whose has damaged property with join timestamp and problem with proper checking new message
let joinTimestamp: number | null | undefined
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be a better idea for this to be added as transform instead of in app's logic

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree it shouldn't be done in saga, but I'm not certainly convinced if it should be a responsibility of transformer either... I'd rather changed selector to never return undefined

@Kacper-RF Kacper-RF marked this pull request as ready for review July 24, 2023 07:45
@Kacper-RF Kacper-RF merged commit cce4110 into develop Jul 24, 2023
12 checks passed
@siepra siepra deleted the bug/1565 branch July 24, 2023 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants