add: connect to socket by community
direct messages/groups connect by channel id, everything else should connect by channel with the "is_channel" header set to true
This commit is contained in:
parent
c1c8cdbfcd
commit
0304461389
20 changed files with 241 additions and 160 deletions
|
@ -121,7 +121,7 @@ impl DataManager {
|
|||
pub async fn fill_posts(
|
||||
&self,
|
||||
posts: Vec<Post>,
|
||||
ignore_users: &Vec<usize>,
|
||||
ignore_users: &[usize],
|
||||
) -> Result<Vec<(Post, User, Option<(User, Post)>, Option<(Question, User)>)>> {
|
||||
let mut out: Vec<(Post, User, Option<(User, Post)>, Option<(Question, User)>)> = Vec::new();
|
||||
|
||||
|
@ -160,7 +160,7 @@ impl DataManager {
|
|||
&self,
|
||||
posts: Vec<Post>,
|
||||
user_id: usize,
|
||||
ignore_users: &Vec<usize>,
|
||||
ignore_users: &[usize],
|
||||
) -> Result<
|
||||
Vec<(
|
||||
Post,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue