fix: get jid from remoteJid field (#131)
This commit is contained in:
parent
be18159b00
commit
c3a90803d1
@ -8,7 +8,9 @@ module Whatsapp::BaileysHandlers::Helpers # rubocop:disable Metrics/ModuleLength
|
|||||||
end
|
end
|
||||||
|
|
||||||
def sender_lid
|
def sender_lid
|
||||||
@raw_message[:key][:senderLid]
|
return @raw_message[:key][:senderLid] if @raw_message[:key].key?(:senderLid)
|
||||||
|
|
||||||
|
@raw_message[:key][:remoteJid] if jid_type == 'lid'
|
||||||
end
|
end
|
||||||
|
|
||||||
def incoming?
|
def incoming?
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user