Skip to content

introduce UIChatListItemChanged event #4475

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

Closed
wants to merge 18 commits into from

Conversation

Simon-Laux
Copy link
Contributor

  • add get_chat_list_item_by_id method
  • simplify the sql query
  • chagnelog entry
  • make clippy happy
  • remove message id from chatlist item,
  • more context for chat and chatlist errors (more context for chat and chatlist errors #3932)
  • fix archive link error
  • fix bug: empty chat were displayed as errors
  • fix formatting and clippy warning
  • rename get_chatlistitem_for_chat to get_last_message_for_chat
  • apply suggestions from code review
  • define the new events
  • regenerate node constants also run cargo fmt
  • add to IncomingMsg and MsgsChanged events
  • add to ChatModified event where applicable
  • add to MsgRead, MsgDelivered, MsgFailed events
  • add to MsgsNoticed event
  • add events for block & unblock contact

Simon-Laux and others added 18 commits January 16, 2023 15:48
why? because desktop currently fetches the chatlist multiple times, even though it just needs the chatlistitem for one chat

Note: @r10s was worried before that exposing the method to get a single
updated chatlistitem could lead to race conditions
where the chatlist item is newer than the chatlist order.
But I don't think this will change anything for desktop besides making it a little faster.
(because currently desktop fetches the whole chatlist
instead of just the entry it needs when an entry updates)
there still are bugs in the sql query of get_chatlistitem_for_chat,
but other than that already works fine in desktop
and change return type to `Option<MsgId>`
also run cargo fmt
also emit an UIChatListItemChanged for the archive link pseudo item when marking it as read
@Simon-Laux
Copy link
Contributor Author

this is replaced by the rebased version in #4476

@Simon-Laux Simon-Laux closed this Jun 15, 2023
@Simon-Laux Simon-Laux deleted the simon/UIChatListItemChanged-Event branch June 15, 2023 13:12
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.

1 participant