Allow the mac app to chose room avatars directly from files instead of the photo library

This commit is contained in:
Stefan Ceriu
2026-04-25 11:46:40 +03:00
parent 0ec114d2f3
commit 53a54c1b90
20 changed files with 56 additions and 8 deletions
@@ -139,11 +139,17 @@ struct CreateRoomScreen: View {
Button(L10n.actionTakePhoto) {
context.send(viewAction: .displayCameraPicker)
}
Button(L10n.actionChoosePhoto) {
context.send(viewAction: .displayMediaPicker)
}
.accessibilityIdentifier(A11yIdentifiers.createRoomScreen.mediaPicker)
Button(L10n.actionChooseFile) {
context.send(viewAction: .displayFilePicker)
}
.accessibilityIdentifier(A11yIdentifiers.createRoomScreen.filePicker)
if context.viewState.avatarImage != nil {
Button(L10n.actionRemove, role: .destructive) {
context.send(viewAction: .removeImage)