Catch error of userAgent
Root cause: if open and close composer very frequently, sometime userAgent is not `init` and `release` well
This commit is contained in:
committed by
Dat H. Pham
parent
1cc9b273db
commit
f35a6620d5
@@ -777,7 +777,7 @@ class ComposerController extends BaseController {
|
||||
} else {
|
||||
userAgent = FkUserAgent.userAgent ?? '';
|
||||
}
|
||||
} on Exception {
|
||||
} catch (e) {
|
||||
userAgent = '';
|
||||
}
|
||||
return 'Team-Mail/${mailboxDashBoardController.appInformation.value?.version} $userAgent';
|
||||
|
||||
Reference in New Issue
Block a user