yowsup icon indicating copy to clipboard operation
yowsup copied to clipboard

Real Time Location Messages

Open brayanesc opened this issue 7 years ago • 2 comments

Hello! I was wondering if there is a way to handle this kind of messages or how to properly ignore them and send double check to them. Thanks in advance :)

brayanesc avatar Jan 04 '18 13:01 brayanesc

When you received, have something error??

pabloruan0710 avatar May 21 '18 11:05 pabloruan0710

I ignore the Real Time Location Message by apply this patch https://github.com/tgalal/yowsup/pull/2208

But the problem is that it keep sending a notification that generate ack error.

The debug show this notification send from the number that share the real time location:

<notification offline="1" from="location@broadcast" participant="[email protected]" notify="Test User" id="02" type="location" t="1531320707">
<enc type="msg" v="2">
ENCRYPT DATA
</enc>
</notification>

This generate this error:

<stream:error>
<ack id="02">
</ack>
</stream:error>

As far as I understand it was supposed to be ignored based on code:

        elif node["type"] in ["features", "contacts", "web", "location"]:
            # implement individually at some point
            # but keep this pass block so system doesn't crash on these types
            pass
        elif node["type"] in ["business"]:
            print("unhandled business notification")
            pass        
        else:

In "yowsup\layers\protocol_notifications\layer.py", but continues to generate the error.

Anyone have any ideas how to fix or ignore this notification?

@pabloruan0710 and @AragurDEV, I appreciate any help!

Thanks.

AdrianoMartins avatar Jul 13 '18 21:07 AdrianoMartins