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:
@@ -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(),
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user