Commit 54ad182e94
Unsigned
Layout: unified · split
src/room/mod.rs +6 −8
| @@ -417,10 +417,6 @@ impl BufferInputCallbackAsync for MatrixRoom { | ||
| 417 | 417 | } |
| 418 | 418 | |
| 419 | 419 | impl MatrixRoom { |
| 420 | fn update_status_bar(&self) { | |
| 421 | Weechat::bar_item_update("buffer_modes"); | |
| 422 | } | |
| 423 | ||
| 424 | 420 | pub fn is_encrypted(&self) -> bool { |
| 425 | 421 | self.members |
| 426 | 422 | .runtime |
| @@ -1096,7 +1092,7 @@ impl MatrixRoom { | ||
| 1096 | 1092 | ) |
| 1097 | 1093 | .await; |
| 1098 | 1094 | |
| 1099 | self.update_status_bar(); | |
| 1095 | Weechat::bar_item_update("buffer_modes"); | |
| 1100 | 1096 | } |
| 1101 | 1097 | |
| 1102 | 1098 | fn set_prev_batch(&self) { |
| @@ -1182,9 +1178,11 @@ impl MatrixRoom { | ||
| 1182 | 1178 | AnySyncStateEvent::SpaceParent(_) => { |
| 1183 | 1179 | self.buffer.update_parent_spaces() |
| 1184 | 1180 | } |
| 1185 | _ => (), | |
| 1181 | AnySyncStateEvent::RoomEncryption(_) | |
| 1182 | | AnySyncStateEvent::RoomJoinRules(_) => { | |
| 1183 | Weechat::bar_item_update("buffer_modes"); | |
| 1184 | } | |
| 1185 | _ => {} | |
| 1186 | 1186 | } |
| 1187 | ||
| 1188 | self.update_status_bar(); | |
| 1189 | 1187 | } |
| 1190 | 1188 | } |