mirror of
https://github.com/chatmail/core.git
synced 2026-05-09 01:46:30 +03:00
fix compile error on events.rs
This commit is contained in:
@@ -340,7 +340,7 @@ impl Event {
|
|||||||
| EventType::ImapMessageMoved(data1)
|
| EventType::ImapMessageMoved(data1)
|
||||||
| EventType::NewBlobFile(data1)
|
| EventType::NewBlobFile(data1)
|
||||||
| EventType::DeletedBlobFile(data1)
|
| EventType::DeletedBlobFile(data1)
|
||||||
| EventType::ErrorSelfNotInGroup(data1) => (Value::String(data1), Value::Null),
|
| EventType::ErrorSelfNotInGroup(data1) => (Value::String(data1.to_owned()), Value::Null),
|
||||||
EventType::MsgsChanged { chat_id, msg_id }
|
EventType::MsgsChanged { chat_id, msg_id }
|
||||||
| EventType::IncomingMsg { chat_id, msg_id }
|
| EventType::IncomingMsg { chat_id, msg_id }
|
||||||
| EventType::MsgDelivered { chat_id, msg_id }
|
| EventType::MsgDelivered { chat_id, msg_id }
|
||||||
@@ -366,14 +366,14 @@ impl Event {
|
|||||||
Value::Null,
|
Value::Null,
|
||||||
),
|
),
|
||||||
EventType::ConfigureProgress { progress, comment } => (
|
EventType::ConfigureProgress { progress, comment } => (
|
||||||
Value::Number(progress.into()),
|
Value::Number((*progress).into()),
|
||||||
if let Some(comment) = comment {
|
if let Some(comment) = comment {
|
||||||
Value::String(comment)
|
Value::String(comment.to_owned())
|
||||||
} else {
|
} else {
|
||||||
Value::Null
|
Value::Null
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
EventType::ImexProgress(progress) => (Value::Number(progress.into()), Value::Null),
|
EventType::ImexProgress(progress) => (Value::Number((*progress).into()), Value::Null),
|
||||||
EventType::ImexFileWritten(path) => (Value::String(format!("{:?}", path)), Value::Null),
|
EventType::ImexFileWritten(path) => (Value::String(format!("{:?}", path)), Value::Null),
|
||||||
EventType::SecurejoinInviterProgress {
|
EventType::SecurejoinInviterProgress {
|
||||||
contact_id,
|
contact_id,
|
||||||
@@ -384,7 +384,7 @@ impl Event {
|
|||||||
progress,
|
progress,
|
||||||
} => (
|
} => (
|
||||||
Value::Number(contact_id.to_u32().into()),
|
Value::Number(contact_id.to_u32().into()),
|
||||||
Value::Number(progress.into()),
|
Value::Number((*progress).into()),
|
||||||
),
|
),
|
||||||
EventType::ConnectivityChanged | EventType::SelfavatarChanged => {
|
EventType::ConnectivityChanged | EventType::SelfavatarChanged => {
|
||||||
(Value::Null, Value::Null)
|
(Value::Null, Value::Null)
|
||||||
|
|||||||
Reference in New Issue
Block a user