Remove screen sharing indicator when call ends

Antonio Scandurra created

Previously, we would only remove it when the screen sharing stopped.

Change summary

crates/collab_ui/src/sharing_status_indicator.rs | 2 ++
1 file changed, 2 insertions(+)

Detailed changes

crates/collab_ui/src/sharing_status_indicator.rs 🔗

@@ -21,6 +21,8 @@ pub fn init(cx: &mut MutableAppContext) {
             } else if let Some((window_id, _)) = status_indicator.take() {
                 cx.remove_status_bar_item(window_id);
             }
+        } else if let Some((window_id, _)) = status_indicator.take() {
+            cx.remove_status_bar_item(window_id);
         }
     })
     .detach();