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

Save last viewed at state on logout and only use stored last viewed at if newer than what the server knows #422

Merged
merged 1 commit into from
Apr 2, 2021

Conversation

hloeung
Copy link
Collaborator

@hloeung hloeung commented Apr 2, 2021

Useful for when you want to restart matterircd and not have any logs replayed. To flush or force saving of last viewed at state, use the logout command per below:

/msg mattermost logout

We also want to make sure we use the server's known channel last viewed if it's newer than what's saved to further reduce messages we've seen.

@hloeung hloeung marked this pull request as draft April 2, 2021 10:17
@hloeung hloeung force-pushed the persistent-last-viewed branch from acc6713 to ee6a30c Compare April 2, 2021 10:43
@hloeung hloeung marked this pull request as ready for review April 2, 2021 10:51
Copy link
Owner

@42wim 42wim left a comment

Choose a reason for hiding this comment

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

Small nitpicks, if you find your version more readable it's fine too

mm-go-irckit/userbridge.go Outdated Show resolved Hide resolved
mm-go-irckit/userbridge.go Outdated Show resolved Hide resolved
@hloeung hloeung force-pushed the persistent-last-viewed branch from f80f321 to 3a0d0b3 Compare April 2, 2021 20:58
@42wim 42wim added this to the 0.24.1 milestone Apr 2, 2021
@42wim 42wim merged commit d047782 into 42wim:master Apr 2, 2021
@hloeung hloeung deleted the persistent-last-viewed branch April 2, 2021 23:42
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.

2 participants