|
|
@@ -26,7 +26,7 @@ class LNHomeTopMenuView: UIView {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-extension LNHomeTopMenuView: LNRoomManagerNotify {
|
|
|
+extension LNHomeTopMenuView: LNRoomManagerNotify, LNAccountManagerNotify {
|
|
|
func onUserRoomAbilityChanged() {
|
|
|
guard let ability = LNRoomManager.shared.roomAbility else {
|
|
|
createRoom.isHidden = true
|
|
|
@@ -34,6 +34,10 @@ extension LNHomeTopMenuView: LNRoomManagerNotify {
|
|
|
}
|
|
|
createRoom.isHidden = ability.homeowner != true || ability.roomTypes.isEmpty
|
|
|
}
|
|
|
+
|
|
|
+ func onUserLogout() {
|
|
|
+ createRoom.isHidden = true
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
extension LNHomeTopMenuView {
|