Skip to content

Commit

Permalink
Merge branch 'fix-lost-call' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
therockerline committed May 20, 2024
2 parents 6d9224c + f028814 commit 592cc75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/classes/controllers/NethLinkController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,13 @@ export class NethLinkController {
this.window.emit(IPC_EVENTS.ACCOUNT_CHANGE, account)
}

show() {
loadData() {
this.fetchOperatorsAndEmit()
this.fetchHistoryCallsAndEmit()
this.fetchSpeeddialsAndEmit()
}
show() {
this.loadData()
this.window.show()
}

Expand Down
3 changes: 3 additions & 0 deletions src/main/lib/ipcEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ export function registerIpcEvents() {
const nethlinkExtension = account!.data!.endpoints.extension.find((el) => el.type === 'nethlink')
NethVoiceAPI.instance.User.heartbeat(`${nethlinkExtension!.id}`)
break;
case PHONE_ISLAND_EVENTS['phone-island-call-ended']:
NethLinkController.instance.loadData()
break;
}
// if (ev === PHONE_ISLAND_EVENTS['phone-island-call-answered']) {
// const username = AccountController.instance.getLoggedAccount()?.username
Expand Down

0 comments on commit 592cc75

Please sign in to comment.