From ed50951c5119aa8a9484e5b54bf2a10b08cc91a4 Mon Sep 17 00:00:00 2001 From: manuroe Date: Thu, 14 Sep 2017 17:52:21 +0200 Subject: [PATCH] Modular integrations UI: Clean i18n strings for modular --- Riot/Assets/en.lproj/Vector.strings | 1 - Riot/ViewController/Widgets/IntegrationManagerViewController.m | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Riot/Assets/en.lproj/Vector.strings b/Riot/Assets/en.lproj/Vector.strings index e5067e691..0937102d3 100644 --- a/Riot/Assets/en.lproj/Vector.strings +++ b/Riot/Assets/en.lproj/Vector.strings @@ -511,7 +511,6 @@ "widget_creation_failure" = "Widget creation has failed"; // Widget Integration Manager -"widget_integration_need_login" = "You need to be logged in."; "widget_integration_need_to_be_able_to_invite" = "You need to be able to invite users to do that."; "widget_integration_unable_to_create" = "Unable to create widget."; "widget_integration_failed_to_send_request" = "Failed to send request."; diff --git a/Riot/ViewController/Widgets/IntegrationManagerViewController.m b/Riot/ViewController/Widgets/IntegrationManagerViewController.m index 71a399c8a..92add56be 100644 --- a/Riot/ViewController/Widgets/IntegrationManagerViewController.m +++ b/Riot/ViewController/Widgets/IntegrationManagerViewController.m @@ -389,7 +389,7 @@ NSString *kJavascriptSendResponseToModular = @"riotIOS.sendResponse('%@', %@);"; typeof(self) self = weakSelf; if (self) { - [self sendLocalisedError:@"widget_integration_failed_to_send_request" toEvent:eventData]; + [self sendLocalisedError:@"widget_integration_need_to_be_able_to_invite" toEvent:eventData]; } }]; } @@ -712,6 +712,7 @@ NSString *kJavascriptSendResponseToModular = @"riotIOS.sendResponse('%@', %@);"; else { NSLog(@"[IntegrationManagerVC] setBotPower. Power level must be positive integer."); + [self sendLocalisedError:@"widget_integration_positive_power_level" toEvent:eventData]; } } }