Skip to content

Commit

Permalink
test version check for closing dial modal
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbuks committed Jun 7, 2024
1 parent d1cb9b0 commit 39f83b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/channels/src/actions/websocket_actions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ import {checkIKTokenIsExpired, refreshIKToken} from 'components/login/utils';

import {getHistory} from 'utils/browser_history';
import {ActionTypes, Constants, AnnouncementBarMessages, SocketEvents, UserStatuses, ModalIdentifiers, StoragePrefixes} from 'utils/constants';
import {isServerVersionGreaterThanOrEqualTo} from 'utils/server_version';
import {getSiteURL} from 'utils/url';
import {isDesktopApp} from 'utils/user_agent';

Expand Down Expand Up @@ -1901,7 +1902,7 @@ function handleConferenceUserConnected(msg) {
if (currentUserId === msg?.data?.user_id) {
if (isDesktopApp()) {
window.desktopAPI.closeDial?.();
} else {
} else if (!msg?.data?.desktop_version || (msg?.data?.desktop_version && isServerVersionGreaterThanOrEqualTo(msg?.data?.desktop_version, '3.3.0'))) {
dispatch(closeModal(ModalIdentifiers.INCOMING_CALL));
}
}
Expand Down

0 comments on commit 39f83b8

Please sign in to comment.