zulip-terminal
zulip-terminal copied to clipboard
Handle read events from server
TODO:
- [ ] Limit number of unread msgs that are stored to ~10k
@kaustubh-nair I know this is WIP, but continuing this work would be helpful to reliably track unread counts, depending on how busy you are with other things right now.
@neiljp I was just finishing up with the typeahead footer PR, I'll be working on this one now.
Added some tests for set_counts in the PR referenced above.
@neiljp Thanks for the review!
I've dealt with handling appending of messages as well. I'm pretty sure the keyerror you came across was due to this, since set_count was being called while new messages was not added to the index. If you still come across the exception, let me know!
Last two commits can be squashed later; I've kept them separate for now.
@kaustubh-nair I'm still getting tracebacks in this PR; I've not read through it again in detail though, so can't make further comments at this stage.
Heads up @kaustubh-nair, we just merged some commits that conflict with the changes your made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the upstream/main branch and resolve your pull request's merge conflicts accordingly.
@kaustubh-nair can I take this up if you are not planning to continue work on this?