-
-
Notifications
You must be signed in to change notification settings - Fork 99
add chatlist changed event #2850
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -248,6 +248,13 @@ pub enum EventType { | |
timer: EphemeralTimer, | ||
}, | ||
|
||
// Chatlist changed and ui should reload it (reordering, entry added or removed) | ||
// | ||
// This event is fired when the ordering or contents of the chatlist change, | ||
// for changes in individual chat list items listen to `IncomingMsg`, `MsgsNoticed`, `MsgDelivered`, `MsgFailed`, `MsgRead` and `ChatModified` | ||
Comment on lines
+253
to
+254
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does "or contents" mean that the event is also fired if something within a chatlist item changed (like, a read receipt was received for the last message you sent and now two green checkmarks are shown) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no, I'm open for suggestion on how to make this more clear |
||
#[strum(props(id = "2025"))] | ||
ChatListChanged, | ||
|
||
/// Contact(s) created, renamed, blocked or deleted. | ||
/// | ||
/// @param data1 (int) If set, this is the contact_id of an added contact that should be selected. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Emitting the event is already done in
delete()