[FIX] Logout from other locations not prompting confirmation option (#2854)
* Fixed logout toast bug for the iOS * Removing callToAction and replacing with confirmationText Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
acd5f04314
commit
bdc495dd6d
|
@ -437,7 +437,7 @@ class ProfileView extends React.Component {
|
||||||
logEvent(events.PROFILE_LOGOUT_OTHER_LOCATIONS);
|
logEvent(events.PROFILE_LOGOUT_OTHER_LOCATIONS);
|
||||||
showConfirmationAlert({
|
showConfirmationAlert({
|
||||||
message: I18n.t('You_will_be_logged_out_from_other_locations'),
|
message: I18n.t('You_will_be_logged_out_from_other_locations'),
|
||||||
callToAction: I18n.t('Logout'),
|
confirmationText: I18n.t('Logout'),
|
||||||
onPress: async() => {
|
onPress: async() => {
|
||||||
try {
|
try {
|
||||||
await RocketChat.logoutOtherLocations();
|
await RocketChat.logoutOtherLocations();
|
||||||
|
|
Loading…
Reference in New Issue