From eef4f2d1feb9420f9226e715375339b9bdb3fcd2 Mon Sep 17 00:00:00 2001 From: Demolemon11 Date: Thu, 21 Nov 2024 16:54:42 +0800 Subject: [PATCH] Show notice if user cannot post message --- Cargo.toml | 2 - src/home/room_screen.rs | 44 ++++++++++++++++- src/sliding_sync.rs | 102 +++++++++++++++++++++++++++++++--------- 3 files changed, 122 insertions(+), 26 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2090a94..82698c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -197,5 +197,3 @@ appdata_paths = [ "$APPDATA/$PUBLISHER/$PRODUCTNAME", "$LOCALAPPDATA/$PRODUCTNAME", ] -[profile.dev] -debug = 0 diff --git a/src/home/room_screen.rs b/src/home/room_screen.rs index bbc84b1..89d484d 100644 --- a/src/home/room_screen.rs +++ b/src/home/room_screen.rs @@ -805,7 +805,7 @@ live_design! { location_preview = { } // Below that, display a view that holds the message input bar and send button. - { + bottom_input = { width: Fill, height: Fit flow: Right, align: {y: 0.5}, @@ -912,6 +912,24 @@ live_design! { icon_walk: {width: 18.0, height: Fit}, } } + no_send_permisson_notice = { + visible: false + show_bg: true + draw_bg: { + color: #EFEFEF + } + padding: {left: 75} + align: {y: 0.5} + width: Fill, height: 31, + +