matrix-sdk: (fix) return Ok(()) in ensure_members when returning early

master
SaurusXI 2021-06-21 18:28:11 +05:30
parent b984fcca0c
commit ae5be67322
No known key found for this signature in database
GPG Key ID: 443CCBEAA2C0E87E
1 changed files with 1 additions and 2 deletions

View File

@ -12,7 +12,6 @@ use ruma::{
}; };
use crate::{ use crate::{
error::{self, HttpError},
media::{MediaFormat, MediaRequest, MediaType}, media::{MediaFormat, MediaRequest, MediaType},
room::RoomType, room::RoomType,
BaseRoom, Client, Result, RoomMember, BaseRoom, Client, Result, RoomMember,
@ -173,7 +172,7 @@ impl Common {
async fn ensure_members(&self) -> Result<()> { async fn ensure_members(&self) -> Result<()> {
if !self.are_events_visible() { if !self.are_events_visible() {
return Err(error::Error::Http(HttpError::NotClientRequest)); return Ok(());
} }
if !self.are_members_synced() { if !self.are_members_synced() {