Fix branches sharing code

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-06-09 05:15:27 +00:00
parent b65f05ce19
commit 67f4285504
4 changed files with 6 additions and 13 deletions

View file

@ -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)
}