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 0f3ca2afa6f68a53fddf6c3e6dcc1481fb9f8c7b
parent b4994e90a818033a89220f8087849906d5d5b808
Author: Marcel <mtrnord1@gmail.com>
Date:   Sat, 30 May 2020 23:03:39 +0200

Reload room list on first message if needed

Took 7 minutes

Diffstat:
Msrc/app/components/room_list.rs | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/app/components/room_list.rs b/src/app/components/room_list.rs @@ -75,6 +75,10 @@ impl Component for RoomList { } // Handle new rooms from sync Response::Sync(msg) => { + // TODO properly do this... + if self.state.rooms.is_empty() { + self.matrix_agent.send(Request::GetJoinedRooms); + } if !(self .state .rooms