File tree 1 file changed +6
-8
lines changed 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -267,14 +267,12 @@ impl Widget for EditingPane {
267
267
// Check for room member update actions and power level updates
268
268
for action in actions {
269
269
// Check for MentionableTextInputAction::PowerLevelsUpdated
270
- if let Some ( power_levels_action) = action. downcast_ref :: < MentionableTextInputAction > ( ) {
271
- if let MentionableTextInputAction :: PowerLevelsUpdated ( room_id, can_notify_room) = power_levels_action {
272
- // Make sure this is for our current room
273
- if let Some ( info) = & self . info {
274
- if & info. room_id == room_id {
275
- let message_input = self . mentionable_text_input ( id ! ( editing_content. edit_text_input) ) ;
276
- message_input. set_can_notify_room ( * can_notify_room) ;
277
- }
270
+ if let Some ( MentionableTextInputAction :: PowerLevelsUpdated ( room_id, can_notify_room) ) = action. downcast_ref :: < MentionableTextInputAction > ( ) {
271
+ // Make sure this is for our current room
272
+ if let Some ( info) = & self . info {
273
+ if & info. room_id == room_id {
274
+ let message_input = self . mentionable_text_input ( id ! ( editing_content. edit_text_input) ) ;
275
+ message_input. set_can_notify_room ( * can_notify_room) ;
278
276
}
279
277
}
280
278
}
You can’t perform that action at this time.
0 commit comments