Fix configure voice chat

add missing async/await call to fetch chat inputs
This commit is contained in:
Nuwan 2023-02-16 18:21:11 +05:30
parent 80bf8119af
commit 19050d317b
3 changed files with 4 additions and 4 deletions

View File

@ -503,7 +503,7 @@
(d) => d.request_id !== deferred.request_id
);
} else if (evt_id) {
logger.log("[asyncJamClient] event received:", evt_id, Object.keys(response)[0])
//logger.log("[asyncJamClient] event received:", evt_id, Object.keys(response)[0])
let method = Object.keys(response)[0]
switch (evt_id.toString()) {

View File

@ -62,7 +62,7 @@
await context.jamClient.TrackSetChatEnable(true);
var result = await context.jamClient.TrackSaveAssignments();
if(!result || result.length == 0) {
if(!result || result.length === 0) {
context.JK.Banner.showAlert('It appears the selected chat input is not functioning. Please try another chat input.');
}
else {
@ -100,7 +100,7 @@
$chatInputs.empty();
var chatInputs = gearUtils.getChatInputs();
var chatInputs = await gearUtils.getChatInputs();
context._.each(chatInputs, function(chatInput) {
if(chatInput.assignment > 0) {

View File

@ -33,7 +33,7 @@
}
}
async function newSession() {
function newSession() {
firstTimeShown = true;
}