chore: improve chat panel (#121)
* . * . * . * skip sent message * improve sent reports * . * . * .
This commit is contained in:
@@ -20,8 +20,6 @@ use crate::room::Room;
|
||||
pub mod message;
|
||||
pub mod room;
|
||||
|
||||
i18n::init!();
|
||||
|
||||
pub fn init(cx: &mut App) {
|
||||
Registry::set_global(cx.new(Registry::new), cx);
|
||||
}
|
||||
@@ -421,8 +419,8 @@ impl Registry {
|
||||
}
|
||||
|
||||
// Emit the new message to the room
|
||||
cx.defer_in(window, |this, window, cx| {
|
||||
this.emit_message(event, window, cx);
|
||||
cx.defer_in(window, move |this, _window, cx| {
|
||||
this.emit_message(event, cx);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user