mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
Use self instead of going through services()
This commit is contained in:
parent
f52cf53931
commit
341f4213d0
8 changed files with 26 additions and 60 deletions
|
|
@ -236,8 +236,7 @@ impl Service {
|
|||
tokio::spawn(async move {
|
||||
let mut receiver = self2.receiver.lock().await;
|
||||
|
||||
let Ok(Some(grapevine_room)) = services().admin.get_admin_room()
|
||||
else {
|
||||
let Ok(Some(grapevine_room)) = self2.get_admin_room() else {
|
||||
return;
|
||||
};
|
||||
|
||||
|
|
@ -1470,7 +1469,7 @@ impl Service {
|
|||
user_id: &UserId,
|
||||
displayname: String,
|
||||
) -> Result<()> {
|
||||
if let Some(room_id) = services().admin.get_admin_room()? {
|
||||
if let Some(room_id) = self.get_admin_room()? {
|
||||
let room_token = services()
|
||||
.globals
|
||||
.roomid_mutex_state
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue