]> Untitled Git - lemmy.git/blobdiff - crates/api/src/lib.rs
Adding GetUnreadCount to the API. Fixes #1794 (#1842)
[lemmy.git] / crates / api / src / lib.rs
index bfaceeb02ba6ac2f0450d652d67a2d771c52b07f..ccc817616e2aecf7e555f58a9dbd6abb03c09b0b 100644 (file)
@@ -72,6 +72,9 @@ pub async fn match_websocket_operation(
     UserOperation::GetReportCount => {
       do_websocket_operation::<GetReportCount>(context, id, op, data).await
     }
+    UserOperation::GetUnreadCount => {
+      do_websocket_operation::<GetUnreadCount>(context, id, op, data).await
+    }
 
     // Private Message ops
     UserOperation::MarkPrivateMessageAsRead => {