Changeset ba52ac5


Ignore:
Timestamp:
2016-10-07T12:19:18Z (4 years ago)
Author:
Wilmer van der Gaast <github@…>
Children:
537d9b9
Parents:
3fbce97
git-author:
Steven McDonald <steven@…> (07-10-16 12:19:18)
git-committer:
Wilmer van der Gaast <github@…> (07-10-16 12:19:18)
Message:

Update WhatsApp plugin for yowsup 2.5 (#87)

The removed imports appear to be unnecessary -- nothing else uses those
names in this file -- and they have been removed in yowsup. The other
change is due to a change in API in the YowsupEnv module.

I'm not certain whether this commit is sufficient or even correct, but
it has made the plugin work for me.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/wa.py

    r3fbce97 rba52ac5  
    4545from yowsup.layers.protocol_receipts.protocolentities    import *
    4646from yowsup.layers.axolotl.protocolentities.iq_key_get import GetKeysIqProtocolEntity
    47 from yowsup.layers.axolotl import YowAxolotlLayer
    48 from yowsup.common.tools import ModuleTools
    4947
    5048import implugin
     
    499497                stack.setProp(YowNetworkLayer.PROP_ENDPOINT, YowConstants.ENDPOINTS[0])
    500498                stack.setProp(YowCoderLayer.PROP_DOMAIN, YowConstants.DOMAIN)
    501                 stack.setProp(YowCoderLayer.PROP_RESOURCE, env.CURRENT_ENV.getResource())
     499                stack.setProp(YowCoderLayer.PROP_RESOURCE, env.YowsupEnv.getCurrent().getResource())
    502500                try:
    503501                        stack.setProp(YowIqProtocolLayer.PROP_PING_INTERVAL, 0)
Note: See TracChangeset for help on using the changeset viewer.