fix linting issues
This commit is contained in:
parent
fc7a1a9974
commit
7738f7910b
1 changed files with 11 additions and 11 deletions
|
|
@ -345,17 +345,17 @@ exports.LoadUtils = () => {
|
||||||
|
|
||||||
window.WWebJS.sendChatstate = async (state, chatId) => {
|
window.WWebJS.sendChatstate = async (state, chatId) => {
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case 'typing':
|
case 'typing':
|
||||||
await window.Store.Wap.sendChatstateComposing(chatId);
|
await window.Store.Wap.sendChatstateComposing(chatId);
|
||||||
break;
|
break;
|
||||||
case 'recording':
|
case 'recording':
|
||||||
await window.Store.Wap.sendChatstateRecording(chatId);
|
await window.Store.Wap.sendChatstateRecording(chatId);
|
||||||
break;
|
break;
|
||||||
case 'stop':
|
case 'stop':
|
||||||
await window.Store.Wap.sendChatstatePaused(chatId);
|
await window.Store.Wap.sendChatstatePaused(chatId);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw 'Invalid chatstate';
|
throw 'Invalid chatstate';
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue