🚨 Fix some clippy warnings
All checks were successful
ci/woodpecker/pr/validate Pipeline was successful
All checks were successful
ci/woodpecker/pr/validate Pipeline was successful
This commit is contained in:
@@ -39,6 +39,7 @@ pub trait RoomStoreConsumerInterface {
|
||||
pub trait RoomStoreProviderInterface {
|
||||
fn on_new_name(&self, name: Option<String>);
|
||||
fn on_new_avatar(&self, avatar: Option<Avatar>);
|
||||
#[allow(dead_code)]
|
||||
fn on_new_topic(&self, topic: Option<String>);
|
||||
fn on_new_member(&self, member: RoomMember);
|
||||
fn on_invitation(&self, invitation: Invitation);
|
||||
|
@@ -5,7 +5,7 @@ turf::style_sheet!("src/ui/components/chat_panel.scss");
|
||||
#[component]
|
||||
pub fn ChatPanel(name: String) -> Element {
|
||||
rsx! {
|
||||
style { {STYLE_SHEET} },
|
||||
style { {STYLE_SHEET} }
|
||||
|
||||
div {
|
||||
class: ClassName::CHAT_PANEL,
|
||||
|
@@ -237,12 +237,16 @@ pub fn ConversationAvatar(
|
||||
let on_press = {
|
||||
let room_id = room_id.clone();
|
||||
move || {
|
||||
on_selected.map(|c| c.call(room_id.as_ref().clone()));
|
||||
if let Some(c) = on_selected {
|
||||
c.call(room_id.as_ref().clone())
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
let on_long_press = move || {
|
||||
on_pressed.map(|c| c.call(room_id.as_ref().clone()));
|
||||
if let Some(c) = on_pressed {
|
||||
c.call(room_id.as_ref().clone())
|
||||
}
|
||||
};
|
||||
|
||||
let long_press_hook = use_long_press(long_press_duration, on_press, on_long_press);
|
||||
|
Reference in New Issue
Block a user