1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-09-06 17:00:57 +00:00

run cargo fix for rust 2024 changes and rustfmt

Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay>
This commit is contained in:
June Clementine Strawberry 2025-02-23 01:17:45 -05:00
parent e97952b7f6
commit a1e1f40ded
No known key found for this signature in database
320 changed files with 2212 additions and 2039 deletions

View file

@ -1,22 +1,21 @@
use std::{collections::BTreeMap, sync::Arc};
use conduwuit::{
err,
PduCount, PduEvent, PduId, RawPduId, Result, err,
utils::{
stream::{TryIgnore, WidebandExt},
ReadyExt,
stream::{TryIgnore, WidebandExt},
},
PduCount, PduEvent, PduId, RawPduId, Result,
};
use database::{Deserialized, Map};
use futures::{Stream, StreamExt};
use ruma::{
api::client::threads::get_threads::v1::IncludeThreads, events::relation::BundledThread, uint,
CanonicalJsonValue, EventId, OwnedUserId, RoomId, UserId,
api::client::threads::get_threads::v1::IncludeThreads, events::relation::BundledThread, uint,
};
use serde_json::json;
use crate::{rooms, rooms::short::ShortRoomId, Dep};
use crate::{Dep, rooms, rooms::short::ShortRoomId};
pub struct Service {
db: Data,
@ -121,10 +120,13 @@ impl Service {
}
let mut users = Vec::new();
if let Ok(userids) = self.get_participants(&root_id).await {
users.extend_from_slice(&userids);
} else {
users.push(root_pdu.sender);
match self.get_participants(&root_id).await {
| Ok(userids) => {
users.extend_from_slice(&userids);
},
| _ => {
users.push(root_pdu.sender);
},
}
users.push(pdu.sender.clone());