1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-09-25 22:29:45 +00:00

Can register for post events

This commit is contained in:
2021-02-06 10:16:09 +01:00
parent 0ce59fc5ad
commit e2acb3813e
3 changed files with 20 additions and 0 deletions

View File

@@ -107,6 +107,7 @@ mod ws_connections_list {
use crate::controllers::user_ws_controller::WsSession;
use crate::data::conversation::ConvID;
use crate::data::post::PostID;
use crate::data::user::UserID;
/// This structure contains information about an active connection
@@ -118,6 +119,7 @@ mod ws_connections_list {
pub session: actix::Addr<WsSession>,
pub incognito: bool,
pub conversations: HashSet<ConvID>,
pub posts: HashSet<PostID>,
}
impl WsConnection {
@@ -330,6 +332,7 @@ impl Actor for WsSession {
session: ctx.address(),
incognito: self.incognito,
conversations: HashSet::new(),
posts: HashSet::new(),
})
}