Rename subscribe
to add_{message,request}_handler
in Client
This makes it easier to distinguish between messages and requests.
This commit is contained in:
parent
6a6cd68df4
commit
1aff42302c
4 changed files with 52 additions and 39 deletions
|
@ -184,7 +184,8 @@ impl Channel {
|
|||
rpc: Arc<Client>,
|
||||
cx: &mut ModelContext<Self>,
|
||||
) -> Self {
|
||||
let _subscription = rpc.subscribe_to_entity(details.id, cx, Self::handle_message_sent);
|
||||
let _subscription =
|
||||
rpc.add_entity_message_handler(details.id, cx, Self::handle_message_sent);
|
||||
|
||||
{
|
||||
let user_store = user_store.clone();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue