daydream

A small matrix web client written in rust
git clone git://archive.git.mtrnord.blog/daydream-mx/daydream.git
Log | Files | Refs | README | LICENSE

commit 67036f5a90d0ad10caee7d5efce660b6f6a7d836
parent 05bbafd786bb62a49f2379865caa31ad2832edfa
Author: Marcel <mtrnord1@gmail.com>
Date:   Sun, 26 Jul 2020 11:00:17 +0200

Small cleanup

Took 7 minutes

Diffstat:
MCargo.lock | 4++--
Msrc/app/components/room_list/mod.rs | 21---------------------
Msrc/bin/app.rs | 1+
Msrc/bin/native_worker.rs | 1+
Msrc/lib.rs | 2+-
5 files changed, 5 insertions(+), 24 deletions(-)

diff --git a/Cargo.lock b/Cargo.lock @@ -1056,9 +1056,9 @@ checksum = "237a5ed80e274dbc66f86bd59c1e25edc039660be53194b5fe0a482e0f2612ea" [[package]] name = "proc-macro-hack" -version = "0.5.16" +version = "0.5.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e0456befd48169b9f13ef0f0ad46d492cf9d2dbb918bcf38e01eed4ce3ec5e4" +checksum = "99c605b9a0adc77b7211c6b1f722dcb613d68d66859a44f3d485a6da332b0598" [[package]] name = "proc-macro-nested" diff --git a/src/app/components/room_list/mod.rs b/src/app/components/room_list/mod.rs @@ -218,26 +218,5 @@ impl RoomList { html! { <RoomItem change_room_callback=self.link.callback(Msg::ChangeRoom) room=room.clone() /> } - /*html! { - <li class=classes> - <a onclick=self.link.callback(move |e: MouseEvent| Msg::ChangeRoom(room.clone()))> - {matrix_room.display_name()} - { - if matrix_room.unread_notifications.is_some() && matrix_room.unread_notifications.unwrap() != UInt::from(0u32) { - html! { <span class="uk-badge uk-margin-small-left">{matrix_room.unread_notifications.unwrap()}</span> } - } else { - html! {} - } - } - { - if matrix_room.unread_highlight.is_some() && matrix_room.unread_highlight.unwrap() != UInt::from(0u32) { - html! { <span class="uk-badge red uk-margin-small-left">{matrix_room.unread_highlight.unwrap()}</span> } - } else { - html! {} - } - } - </a> - </li> - }*/ } } diff --git a/src/bin/app.rs b/src/bin/app.rs @@ -1,3 +1,4 @@ +#![recursion_limit = "1024"] extern crate console_error_panic_hook; //extern crate wee_alloc; use console_error_panic_hook::set_once as set_panic_hook; diff --git a/src/bin/native_worker.rs b/src/bin/native_worker.rs @@ -1,3 +1,4 @@ +#![recursion_limit = "1024"] //====== Running the worker ======/// // We need to import the Threaded trait to register the worker diff --git a/src/lib.rs b/src/lib.rs @@ -1,4 +1,4 @@ -#![recursion_limit = "512"] +#![recursion_limit = "1024"] pub mod app; mod constants;