Skip to content

Commit f028814

Browse files
committed
fix lost call listener
1 parent 6d9224c commit f028814

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/main/classes/controllers/NethLinkController.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,13 @@ export class NethLinkController {
4242
this.window.emit(IPC_EVENTS.ACCOUNT_CHANGE, account)
4343
}
4444

45-
show() {
45+
loadData() {
4646
this.fetchOperatorsAndEmit()
4747
this.fetchHistoryCallsAndEmit()
4848
this.fetchSpeeddialsAndEmit()
49+
}
50+
show() {
51+
this.loadData()
4952
this.window.show()
5053
}
5154

src/main/lib/ipcEvents.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ export function registerIpcEvents() {
144144
const nethlinkExtension = account!.data!.endpoints.extension.find((el) => el.type === 'nethlink')
145145
NethVoiceAPI.instance.User.heartbeat(`${nethlinkExtension!.id}`)
146146
break;
147+
case PHONE_ISLAND_EVENTS['phone-island-call-ended']:
148+
NethLinkController.instance.loadData()
149+
break;
147150
}
148151
// if (ev === PHONE_ISLAND_EVENTS['phone-island-call-answered']) {
149152
// const username = AccountController.instance.getLoggedAccount()?.username

0 commit comments

Comments
 (0)