MOBILE-4362 messages: Handle disabled messages error

main
Alfonso Salces 2023-09-29 09:19:07 +02:00
parent 57d21e26a1
commit 6f50482a3d
1 changed files with 1 additions and 1 deletions

View File

@ -2485,7 +2485,7 @@ export class AddonMessagesProvider {
if (response && response[0] && response[0].msgid === -1) {
// There was an error, and it should be translated already.
throw new CoreError(response[0].errormessage);
throw new CoreWSError({ message: response[0].errormessage, errorcode: 'sendmessageerror' });
}
try {