mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-21 17:08:11 +01:00
Add editing to call details pane
This commit is contained in:
@@ -9,7 +9,10 @@ import { getIntl } from '../selectors/user';
|
||||
import { useGlobalModalActions } from '../ducks/globalModals';
|
||||
import { getCallLinkAddNameModalRoomId } from '../selectors/globalModals';
|
||||
import { strictAssert } from '../../util/assert';
|
||||
import { isCallLinksCreateEnabled } from '../../util/callLinks';
|
||||
import {
|
||||
isCallLinkAdmin,
|
||||
isCallLinksCreateEnabled,
|
||||
} from '../../util/callLinks';
|
||||
import { CallLinkAddNameModal } from '../../components/CallLinkAddNameModal';
|
||||
|
||||
export const SmartCallLinkAddNameModal = memo(
|
||||
@@ -48,6 +51,8 @@ export const SmartCallLinkAddNameModal = memo(
|
||||
return null;
|
||||
}
|
||||
|
||||
strictAssert(isCallLinkAdmin(callLink), 'User is not an admin');
|
||||
|
||||
return (
|
||||
<CallLinkAddNameModal
|
||||
i18n={i18n}
|
||||
|
||||
Reference in New Issue
Block a user