base: Fix a typo in the room members
parent
c34f69f8a3
commit
b7fda1deb7
|
@ -31,7 +31,7 @@ pub struct RoomMember {
|
||||||
pub(crate) event: Arc<MemberEvent>,
|
pub(crate) event: Arc<MemberEvent>,
|
||||||
pub(crate) profile: Arc<Option<MemberEventContent>>,
|
pub(crate) profile: Arc<Option<MemberEventContent>>,
|
||||||
pub(crate) presence: Arc<Option<PresenceEvent>>,
|
pub(crate) presence: Arc<Option<PresenceEvent>>,
|
||||||
pub(crate) power_levles: Arc<Option<SyncStateEvent<PowerLevelsEventContent>>>,
|
pub(crate) power_levels: Arc<Option<SyncStateEvent<PowerLevelsEventContent>>>,
|
||||||
pub(crate) max_power_level: i64,
|
pub(crate) max_power_level: i64,
|
||||||
pub(crate) is_room_creator: bool,
|
pub(crate) is_room_creator: bool,
|
||||||
pub(crate) display_name_ambiguous: bool,
|
pub(crate) display_name_ambiguous: bool,
|
||||||
|
@ -86,7 +86,7 @@ impl RoomMember {
|
||||||
|
|
||||||
/// Get the power level of this member.
|
/// Get the power level of this member.
|
||||||
pub fn power_level(&self) -> i64 {
|
pub fn power_level(&self) -> i64 {
|
||||||
self.power_levles
|
self.power_levels
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.map(|e| {
|
.map(|e| {
|
||||||
|
|
|
@ -420,7 +420,7 @@ impl Room {
|
||||||
event: member_event.into(),
|
event: member_event.into(),
|
||||||
profile: profile.into(),
|
profile: profile.into(),
|
||||||
presence: presence.into(),
|
presence: presence.into(),
|
||||||
power_levles: power.into(),
|
power_levels: power.into(),
|
||||||
max_power_level,
|
max_power_level,
|
||||||
is_room_creator,
|
is_room_creator,
|
||||||
display_name_ambiguous: ambiguous,
|
display_name_ambiguous: ambiguous,
|
||||||
|
|
Loading…
Reference in New Issue