From 738ad474c1408c7eecfe78c546840e97d62b1aa0 Mon Sep 17 00:00:00 2001 From: 21pages Date: Mon, 18 Sep 2023 14:36:55 +0800 Subject: [PATCH] fix upgrade prompt condition Signed-off-by: 21pages --- flutter/lib/models/group_model.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flutter/lib/models/group_model.dart b/flutter/lib/models/group_model.dart index 6177c5843..2765f36c9 100644 --- a/flutter/lib/models/group_model.dart +++ b/flutter/lib/models/group_model.dart @@ -100,7 +100,10 @@ class GroupModel { Map json = _jsonDecodeResp(utf8.decode(resp.bodyBytes), resp.statusCode); if (json.containsKey('error')) { - if (json['error'] == 'Admin required!') { + if (json['error'] == 'Admin required!' || + json['error'] + .toString() + .contains('ambiguous column name: status')) { throw translate('upgrade_rustdesk_server_pro_to_{1.1.10}_tip'); } else { throw json['error'];