Skip to content

Commit

Permalink
Merge pull request #318 from WhiskeySockets/fix-eslint
Browse files Browse the repository at this point in the history
Fix ESLINT
  • Loading branch information
codebossdev authored Aug 9, 2023
2 parents 4c771d2 + 8917e9e commit f38f194
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Socket/messages-send.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,9 @@ export const makeMessagesSocket = (config: SocketConfig) => {
if(!participant) {
devices.push({ user })
// do not send message to self if the device is 0 (mobile)
if (meDevice != undefined && meDevice !== 0) devices.push({ user: meUser })
if(meDevice !== undefined && meDevice !== 0) {
devices.push({ user: meUser })
}

const additionalDevices = await getUSyncDevices([ meId, jid ], !!useUserDevicesCache, true)
devices.push(...additionalDevices)
Expand Down

0 comments on commit f38f194

Please sign in to comment.