mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Fix modal sheet presentations when invoked from the timeline item menu sheet
This commit is contained in:
parent
a85b313669
commit
dcb692ce9f
@ -215,7 +215,10 @@ public struct TimelineItemMenu: View {
|
||||
|
||||
private func send(_ action: TimelineItemMenuAction) {
|
||||
presentationMode.wrappedValue.dismiss()
|
||||
context.send(viewAction: .timelineItemMenuAction(itemID: item.id, action: action))
|
||||
// Otherwise we might get errors that a sheet is already presented
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
|
||||
context.send(viewAction: .timelineItemMenuAction(itemID: item.id, action: action))
|
||||
}
|
||||
}
|
||||
|
||||
private struct MenuLabel: View {
|
||||
|
Loading…
x
Reference in New Issue
Block a user