Add operation for opening channel notes in channel-based calls (#2933)

Joseph T. Lyons created

Release Notes:

- N/A

Change summary

crates/call/src/call.rs              | 2 +-
crates/collab_ui/src/collab_panel.rs | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)

Detailed changes

crates/call/src/call.rs 🔗

@@ -403,7 +403,7 @@ impl ActiveCall {
         &self.pending_invites
     }
 
-    fn report_call_event(&self, operation: &'static str, cx: &AppContext) {
+    pub fn report_call_event(&self, operation: &'static str, cx: &AppContext) {
         if let Some(room) = self.room() {
             let room = room.read(cx);
             Self::report_call_event_for_room(

crates/collab_ui/src/collab_panel.rs 🔗

@@ -2249,6 +2249,9 @@ impl CollabPanel {
                 anyhow::Ok(())
             })
             .detach();
+            ActiveCall::global(cx).update(cx, |call, cx| {
+                call.report_call_event("open channel notes", cx)
+            });
         }
     }