mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 15:45:11 +00:00
Allow clearing your own call status. (#5959)
* Allow clearing your own call status. * Clarify the names of the SettingsScreenUserStatusRow.Mode cases.
This commit is contained in:
@@ -56,11 +56,11 @@ struct SettingsScreenViewState: BindableState {
|
||||
|
||||
var userStatusRowMode: SettingsScreenUserStatusRow.Mode {
|
||||
if bindings.isShowingCustomStatusField {
|
||||
.custom(emoji: bindings.customStatusEmoji)
|
||||
} else if let rawStatus = userProfile.status.raw {
|
||||
.show(rawStatus)
|
||||
.customStatusInput(emoji: bindings.customStatusEmoji)
|
||||
} else if let displayedStatus = userProfile.status.displayed {
|
||||
.showingStatus(displayedStatus)
|
||||
} else {
|
||||
.pick
|
||||
.pickStatusButton
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -107,7 +107,9 @@ enum SettingsScreenViewAction {
|
||||
/// Show the emoji picker to select the emoji for the custom status.
|
||||
case pickCustomEmoji
|
||||
/// Set the user's status to the provided value.
|
||||
case set(UserStatus.Raw?)
|
||||
case set(UserStatus.Raw)
|
||||
/// Clears the user's currently displayed status.
|
||||
case clear(UserStatus.Displayed)
|
||||
/// Cancel user status picking/input.
|
||||
case cancel
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user