mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-05 14:35:20 -04:00
ffi: Add is_read field to NotificationItem
This commit is contained in:
@@ -22,6 +22,7 @@ dictionary NotificationItem {
|
||||
boolean is_noisy;
|
||||
boolean is_direct;
|
||||
boolean is_encrypted;
|
||||
boolean is_read;
|
||||
};
|
||||
|
||||
interface TimelineEvent {};
|
||||
|
||||
@@ -18,6 +18,7 @@ pub struct NotificationItem {
|
||||
pub is_noisy: bool,
|
||||
pub is_direct: bool,
|
||||
pub is_encrypted: bool,
|
||||
pub is_read: bool,
|
||||
}
|
||||
|
||||
impl NotificationItem {
|
||||
@@ -45,6 +46,7 @@ impl NotificationItem {
|
||||
is_noisy,
|
||||
is_direct: room.is_direct().await?,
|
||||
is_encrypted: room.is_encrypted().await?,
|
||||
is_read: notification.read,
|
||||
};
|
||||
Ok(item)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user