mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-28 04:06:57 +02:00
Feature/3449 release prep
This commit is contained in:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user