1
0

semifinished

This commit is contained in:
2024-05-21 05:44:46 +03:00
parent 3bcc2b5c5c
commit ea4f857d6b
29 changed files with 1212 additions and 65 deletions

View File

@@ -18,7 +18,40 @@ pub enum Message {
CreateMessage(entity::Message),
UpdateChannel(entity::Channel),
CreateChannel(entity::Channel),
DeleteChannel { id: entity::ShortId },
DeleteChannel {
id: entity::ShortId,
},
AddedUserToChannel {
user_id: entity::ShortId,
channel_id: entity::ShortId,
},
RemovedUserFromChannel {
user_id: entity::ShortId,
channel_id: entity::ShortId,
},
CreateSecret(entity::Secret),
UpdateSecret(entity::Secret),
SecretRecipientAdded {
id: entity::ShortId,
user_id: entity::ShortId,
},
SecretRecipientDeleted {
id: entity::ShortId,
user_id: entity::ShortId,
},
DeleteSecret {
id: entity::ShortId,
},
CreateNotification(entity::Notification),
SeenNotification {
id: entity::LongId,
},
FollowUser {
user_id: entity::ShortId,
},
UnfollowUser {
user_id: entity::ShortId,
},
}
pub async fn broadcast_message(