Feature/3449 release prep

This commit is contained in:
Frank Rotermund
2022-08-04 05:15:53 +00:00
parent c12cb45f61
commit 4c8c8cd19a
18 changed files with 144 additions and 31 deletions
@@ -34,13 +34,28 @@ class RoomActionProvider: RoomActionProviderProtocol {
var menu: UIMenu {
if service.isRoomJoined {
return UIMenu(children: [
self.directChatAction,
self.notificationsAction,
self.favouriteAction,
self.lowPriorityAction,
self.leaveAction
])
// bwi use our set of actions
if BwiBuildSettings.bwiFilteredContextMenu {
if service.roomId == PersonalNotesDefaultService(mxSession: service.session).personalNotesRoomId() {
return UIMenu(children: [
self.notificationsAction
])
} else {
return UIMenu(children: [
self.notificationsAction,
self.favouriteAction,
self.leaveAction
])
}
} else {
return UIMenu(children: [
self.directChatAction,
self.notificationsAction,
self.favouriteAction,
self.lowPriorityAction,
self.leaveAction
])
}
} else {
if service.roomMembership == .invite {
return UIMenu(children: [