client: implements event/updates websocket
This commit is contained in:
@@ -54,9 +54,6 @@ impl DbusRepository for ServerImpl {
|
||||
fn get_conversations(&mut self) -> Result<Vec<arg::PropMap>, dbus::MethodErr> {
|
||||
self.send_event_sync(Event::GetAllConversations)
|
||||
.map(|conversations| {
|
||||
// Convert conversations to DBus property maps
|
||||
|
||||
|
||||
conversations.into_iter().map(|conv| {
|
||||
let mut map = arg::PropMap::new();
|
||||
map.insert("guid".into(), arg::Variant(Box::new(conv.guid)));
|
||||
@@ -87,8 +84,6 @@ impl DbusRepository for ServerImpl {
|
||||
|
||||
self.send_event_sync(|r| Event::GetMessages(conversation_id, last_message_id_opt, r))
|
||||
.map(|messages| {
|
||||
|
||||
|
||||
messages.into_iter().map(|msg| {
|
||||
let mut map = arg::PropMap::new();
|
||||
map.insert("id".into(), arg::Variant(Box::new(msg.id)));
|
||||
|
||||
Reference in New Issue
Block a user