|
@@ -546,10 +546,7 @@ class ConversationController {
|
|
|
public submit = (type: threema.MessageContentType, contents: threema.MessageData[]): Promise<any> => {
|
|
|
// Validate whether a connection is available
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- if (!this.stateService.readyToSubmit(
|
|
|
- this.webClientService.chosenTask,
|
|
|
- this.webClientService.startupDone,
|
|
|
- )) {
|
|
|
+ if (!this.webClientService.readyToSubmit) {
|
|
|
// Invalid connection, show toast and abort
|
|
|
this.showError(this.$translate.instant('error.NO_CONNECTION'));
|
|
|
return reject();
|