fix linting issues

This commit is contained in:
Pedro Lopez
2020-11-05 01:40:12 -04:00
parent fc7a1a9974
commit 7738f7910b

View File

@@ -345,17 +345,17 @@ exports.LoadUtils = () => {
window.WWebJS.sendChatstate = async (state, chatId) => {
switch (state) {
case 'typing':
await window.Store.Wap.sendChatstateComposing(chatId);
break;
case 'recording':
await window.Store.Wap.sendChatstateRecording(chatId);
break;
case 'stop':
await window.Store.Wap.sendChatstatePaused(chatId);
break;
default:
throw 'Invalid chatstate';
case 'typing':
await window.Store.Wap.sendChatstateComposing(chatId);
break;
case 'recording':
await window.Store.Wap.sendChatstateRecording(chatId);
break;
case 'stop':
await window.Store.Wap.sendChatstatePaused(chatId);
break;
default:
throw 'Invalid chatstate';
}
return true;