Fix branches sharing code
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
b65f05ce19
commit
67f4285504
4 changed files with 6 additions and 13 deletions
|
@ -91,11 +91,10 @@ impl Service {
|
|||
let mut users = Vec::new();
|
||||
if let Some(userids) = self.db.get_participants(root_id)? {
|
||||
users.extend_from_slice(&userids);
|
||||
users.push(pdu.sender.clone());
|
||||
} else {
|
||||
users.push(root_pdu.sender);
|
||||
users.push(pdu.sender.clone());
|
||||
}
|
||||
users.push(pdu.sender.clone());
|
||||
|
||||
self.db.update_participants(root_id, &users)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue