Skip to content
This repository has been archived by the owner on May 9, 2019. It is now read-only.

Real Time Location Messages #44

Open
brayanesc opened this issue Jan 4, 2018 · 2 comments
Open

Real Time Location Messages #44

brayanesc opened this issue Jan 4, 2018 · 2 comments

Comments

@brayanesc
Copy link

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 :)

@pabloruan0710
Copy link

When you received, have something error??

@AdrianoMartins
Copy link

I ignore the Real Time Location Message by apply this patch tgalal#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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants