add event_bus_typed

This commit is contained in:
2026-09-23 10:36:14 +02:00
parent 3780092fa6
commit ab97dcc8d9
35 changed files with 1376 additions and 3228 deletions
+3 -6
View File
@@ -108,12 +108,9 @@ async fn create_channel(state: &AppState, ids: &[Uuid]) -> Result<channel::Model
.services
.realtime_registry
.set_channel_users(channel.id, ids.iter().copied());
state.event_bus.emit(
"channel_created",
ChannelCreatedEvent {
channel: channel.clone(),
},
);
state.event_bus.emit(ChannelCreatedEvent {
channel: channel.clone(),
});
Ok(channel)
}