mirror of
https://github.com/jambonz/chrome-extension-dialer.git
synced 2026-01-25 02:08:05 +00:00
wip
This commit is contained in:
@@ -133,6 +133,9 @@ export const Phone = ({
|
|||||||
setIsConfigured(false);
|
setIsConfigured(false);
|
||||||
clientGoOffline();
|
clientGoOffline();
|
||||||
}
|
}
|
||||||
|
getSelfRegisteredUser(sipUsernameRef.current).then(({ json }) => {
|
||||||
|
setRegisteredUser(json);
|
||||||
|
});
|
||||||
}, [sipDomain, sipUsername, sipPassword, sipServerAddress, sipDisplayName]);
|
}, [sipDomain, sipUsername, sipPassword, sipServerAddress, sipDisplayName]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -176,9 +179,6 @@ export const Phone = ({
|
|||||||
}, [status]);
|
}, [status]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getSelfRegisteredUser(sipUsernameRef.current).then(({ json }) => {
|
|
||||||
setRegisteredUser(json);
|
|
||||||
});
|
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
getSelfRegisteredUser(sipUsernameRef.current).then(({ json }) => {
|
getSelfRegisteredUser(sipUsernameRef.current).then(({ json }) => {
|
||||||
setRegisteredUser(json);
|
setRegisteredUser(json);
|
||||||
|
|||||||
Reference in New Issue
Block a user