-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add prefix showing messages are replies to threads when using Mattermost ThreadContext * Save lastViewedAt and load on start up (#313) This ensures we only replay backlog for what we haven't seen. * Use LastViewedStateSavedTime rather than town-square when working out if saved info file is stale or too old * Only update last viewed for channels with messages since * Make it show human readable time * Update last viewed for channels when adding and removing events * Fixed based on review, make these Debug as they're already resurfaced * Make config LastViewedSaveFile. Also make format and stale duration constant per review * Update mm-go-irckit/userbridge.go Co-authored-by: Wim <wim@42.be> * Update mm-go-irckit/userbridge.go Co-authored-by: Wim <wim@42.be> * Fixed * Update mm-go-irckit/userbridge.go Co-authored-by: Wim <wim@42.be> * Fixed logic around determining stale duration * Refactor and reduce duplicate code * Refactor further reducing code duplication, based on review * Save LastViewedAt also on the messages sent * Update LastViewedAt on reactions too * Fixed panic, fallout from recent refactor * Reorder grouping mutex, mutex hat * More human friendly time Co-authored-by: Wim <wim@42.be>
- Loading branch information
Showing
4 changed files
with
176 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
matterircd | ||
matterircd.toml | ||
matterircd-lastsaved.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters