Rename room crate to call

Also, rename `client::Call` to `client::IncomingCall`.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2022-09-29 17:24:31 +02:00
parent 1158911560
commit e0db62173a
13 changed files with 49 additions and 43 deletions

View file

@ -1,5 +1,6 @@
use std::sync::Arc;
use call::ActiveCall;
use client::{Client, Contact, User, UserStore};
use editor::{Cancel, Editor};
use fuzzy::{match_strings, StringMatchCandidate};
@ -9,7 +10,6 @@ use gpui::{
ViewHandle,
};
use menu::{Confirm, SelectNext, SelectPrev};
use room::ActiveCall;
use settings::Settings;
use theme::IconButton;

View file

@ -1,6 +1,7 @@
use std::sync::Arc;
use client::{call::Call, Client, UserStore};
use call::ActiveCall;
use client::{incoming_call::IncomingCall, Client, UserStore};
use futures::StreamExt;
use gpui::{
elements::*,
@ -8,7 +9,6 @@ use gpui::{
impl_internal_actions, Entity, ModelHandle, MouseButton, MutableAppContext, RenderContext,
View, ViewContext, WindowBounds, WindowKind, WindowOptions,
};
use room::ActiveCall;
use settings::Settings;
use util::ResultExt;
@ -55,13 +55,17 @@ struct RespondToCall {
}
pub struct IncomingCallNotification {
call: Call,
call: IncomingCall,
client: Arc<Client>,
user_store: ModelHandle<UserStore>,
}
impl IncomingCallNotification {
pub fn new(call: Call, client: Arc<Client>, user_store: ModelHandle<UserStore>) -> Self {
pub fn new(
call: IncomingCall,
client: Arc<Client>,
user_store: ModelHandle<UserStore>,
) -> Self {
Self {
call,
client,