Merge pull request #2107 from Bilb/fix-call-button-hidden

hide the call message on feature flag OFF
pull/2108/head
Audric Ackermann 4 years ago committed by GitHub
commit 5596d72fe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,7 +2,7 @@
"name": "session-desktop", "name": "session-desktop",
"productName": "Session", "productName": "Session",
"description": "Private messaging from your desktop", "description": "Private messaging from your desktop",
"version": "1.7.5", "version": "1.7.6",
"license": "GPL-3.0", "license": "GPL-3.0",
"author": { "author": {
"name": "Loki Project", "name": "Loki Project",

@ -206,7 +206,13 @@ const CallButton = () => {
const hasOngoingCall = useSelector(getHasOngoingCall); const hasOngoingCall = useSelector(getHasOngoingCall);
const canCall = !(hasIncomingCall || hasOngoingCall); const canCall = !(hasIncomingCall || hasOngoingCall);
if (!isPrivate || isMe || !selectedConvoKey || isBlocked) { if (
!isPrivate ||
isMe ||
!selectedConvoKey ||
isBlocked ||
!window.lokiFeatureFlags.useCallMessage
) {
return null; return null;
} }

Loading…
Cancel
Save