Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function sendLocation(params: Typings.Action.Send.Params) {
const {imId, chatType, message, ext} = params;
return ChatManager.sendLocation(
imId,
chatType,
message.data.latitude,
message.data.longitude,
message.data.address,
message.data.name,
ext,
);
}