Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const updateDisplay = (callUUID) => {
const number = calls[callUUID];
// Workaround because Android doesn't display well displayName, se we have to switch ...
if (isIOS) {
RNCallKeep.updateDisplay(callUUID, 'New Name', number);
} else {
RNCallKeep.updateDisplay(callUUID, number, 'New Name');
}
log(`[updateDisplay: ${number}] ${format(callUUID)}`);
};
const updateDisplay = (callUUID) => {
const number = calls[callUUID];
// Workaround because Android doesn't display well displayName, se we have to switch ...
if (isIOS) {
RNCallKeep.updateDisplay(callUUID, 'New Name', number);
} else {
RNCallKeep.updateDisplay(callUUID, number, 'New Name');
}
log(`[updateDisplay: ${number}] ${format(callUUID)}`);
};