matrix-sdk: (fix) return Ok(()) in ensure_members when returning early
parent
b984fcca0c
commit
ae5be67322
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue