Skip to content

Commit cb05d76

Browse files
committed
v0.0.77
1 parent ce95f39 commit cb05d76

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nethlink",
3-
"version": "0.0.76",
3+
"version": "0.0.77",
44
"description": "NethLink app",
55
"main": "./out/main/main.js",
66
"license": "UNLICENSED",

src/renderer/src/hooks/useAccount.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const useAccount = () => {
1414
const _status: StatusTypes = operators?.operators?.[account.username]?.mainPresence || account.data?.mainPresence || status
1515
log('STATUS', _status, account, operators)
1616
setStatus(() => _status)
17-
setIsCallsEnabled(() => !(_status === 'busy' || _status === 'ringing'))
17+
setIsCallsEnabled(() => !(_status === 'busy' || _status === 'ringing' || _status === 'dnd' || _status === 'offline'))
1818

1919
}, [account, operators])
2020

src/renderer/src/pages/NethLinkPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ export function NethLinkPage({ themeMode }: NethLinkPageProps) {
102102
operatorsRef.current.operators[username].mainPresence,
103103
operator.mainPresence
104104
)
105+
105106
if (!operatorsRef.current.operators[username]) {
106107
operatorsRef.current.operators[username] = operator
107108
} else {

0 commit comments

Comments
 (0)