Browse Source

group chat: fix rpc ui

pull/18/head
Sun 4 years ago
parent
commit
a3c776d44c
  1. 4
      src/apps/group_chat/layer.rs

4
src/apps/group_chat/layer.rs

@ -527,7 +527,7 @@ async fn handle_event( @@ -527,7 +527,7 @@ async fn handle_event(
GroupChat::add_height(&db, id, height)?;
// UI: update.
results.rpcs.push(rpc::member_join(fgid, &m));
results.rpcs.push(rpc::member_join(ogid, &m));
// broadcast join event.
let event =
@ -592,7 +592,7 @@ async fn handle_event( @@ -592,7 +592,7 @@ async fn handle_event(
GroupChat::add_height(&db, id, height)?;
// UI: update.
results.rpcs.push(rpc::member_join(fgid, &m));
results.rpcs.push(rpc::member_join(ogid, &m));
// broadcast join event.
let event = Event::MemberJoin(m.m_id, m.m_addr, m.m_name, mavatar, m.datetime);

Loading…
Cancel
Save