mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 12:46:49 +00:00
refactor: Use new make_join and send_join functions in membership service
This commit is contained in:
1 parent
4815fec9d2
commit
7412d301cb
6 files changed
+163
-518
No files matched your search
@@ -541,7 +541,12 @@ impl crate::Context<'_> {
|
||||
.services
|
||||
.rooms
|
||||
.membership
|
||||
.join_room(&user_id, &room_id, Some(String::from(BULK_JOIN_REASON)), &servers)
|
||||
.join_room(
|
||||
&user_id,
|
||||
&room_id,
|
||||
Some(String::from(BULK_JOIN_REASON)),
|
||||
servers.clone(),
|
||||
)
|
||||
.await
|
||||
{
|
||||
| Ok(_res) => {
|
||||
@@ -623,7 +628,12 @@ impl crate::Context<'_> {
|
||||
.services
|
||||
.rooms
|
||||
.membership
|
||||
.join_room(user_id, &room_id, Some(String::from(BULK_JOIN_REASON)), &servers)
|
||||
.join_room(
|
||||
user_id,
|
||||
&room_id,
|
||||
Some(String::from(BULK_JOIN_REASON)),
|
||||
servers.clone(),
|
||||
)
|
||||
.await
|
||||
{
|
||||
| Ok(_res) => {
|
||||
@@ -670,7 +680,7 @@ impl crate::Context<'_> {
|
||||
self.services
|
||||
.rooms
|
||||
.membership
|
||||
.join_room(&user_id, &room_id, None, &servers)
|
||||
.join_room(&user_id, &room_id, None, servers)
|
||||
.await?;
|
||||
|
||||
self.write_str(&format!("{user_id} has been joined to {room_id}."))
|
||||
|
||||
Reference in new issue
Block a user