WIP: refactor: add failing test: arhive updated event #5764
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a stub MR to highlight the issue.
This makes the test fail (and rightly so).
This is the cause of #5768
TBH I have no idea how to fix it, where to add
emit_msgs_changed(DC_CHAT_ID_ARCHIVED_LINK
when a chat is noticed, there doesn't seem to be one universal place for it, it's all mostly SQL.But if someone has an idea, I could try to finish this, or just share my findings.
Also perhaps you would disagree with changing the test this way because these kids of tests are mostly put in
chatlist_event.rs
. But IDK seems a little weird to me to split them like this.For reference, here is the history of related changes:
ChatListChanged
andChatListItemChanged
events #4476 - this doesn't affect archive events too much, apparently, it only adds extraChatlistItemChanged
andChatlistChanged
events on top ofMsgsChanged