Buffer messages in Client while no entity is listening to them
This commit is contained in:
parent
71abea728e
commit
978dae201c
3 changed files with 216 additions and 132 deletions
|
@ -190,7 +190,7 @@ impl Channel {
|
|||
rpc: Arc<Client>,
|
||||
cx: &mut ModelContext<Self>,
|
||||
) -> Self {
|
||||
let _subscription = rpc.add_model_for_remote_entity(cx.handle(), details.id);
|
||||
let _subscription = rpc.add_model_for_remote_entity(details.id, cx);
|
||||
|
||||
{
|
||||
let user_store = user_store.clone();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue