mirror of
https://github.com/Sneed-Group/pypush-plus-plus
synced 2024-12-23 19:32:29 -06:00
fix
This commit is contained in:
parent
44c1987240
commit
28f2072ae6
2 changed files with 7 additions and 5 deletions
2
demo.py
2
demo.py
|
@ -43,7 +43,7 @@ except FileNotFoundError:
|
||||||
CONFIG = {}
|
CONFIG = {}
|
||||||
|
|
||||||
# Re-register if the commit hash has changed
|
# Re-register if the commit hash has changed
|
||||||
if CONFIG.get("commit_hash") != commit_hash or True:
|
if CONFIG.get("commit_hash") != commit_hash:
|
||||||
logging.warning("pypush commit is different, forcing re-registration...")
|
logging.warning("pypush commit is different, forcing re-registration...")
|
||||||
CONFIG["commit_hash"] = commit_hash
|
CONFIG["commit_hash"] = commit_hash
|
||||||
if "id" in CONFIG:
|
if "id" in CONFIG:
|
||||||
|
|
|
@ -204,10 +204,10 @@ def register(
|
||||||
"supports-dq-nr": True,
|
"supports-dq-nr": True,
|
||||||
"public-message-identity-ngm-version": 12.0,
|
"public-message-identity-ngm-version": 12.0,
|
||||||
"supports-audio-messaging-v2": True,
|
"supports-audio-messaging-v2": True,
|
||||||
#"ngm-public-identity": ngm.generate_loggable_data()
|
"ngm-public-identity": ngm.generate_loggable_data()
|
||||||
},
|
},
|
||||||
"kt-loggable-data": ngm.generate_loggable_data(),
|
#"kt-loggable-data": ngm.generate_loggable_data(),
|
||||||
"kt-mismatch-account-flag": True,
|
#"kt-mismatch-account-flag": False,
|
||||||
"uris": uris,
|
"uris": uris,
|
||||||
"user-id": user_id,
|
"user-id": user_id,
|
||||||
}
|
}
|
||||||
|
@ -240,9 +240,11 @@ def register(
|
||||||
"supports-self-one-to-one-invites": True,
|
"supports-self-one-to-one-invites": True,
|
||||||
"supports-modern-gft": True,
|
"supports-modern-gft": True,
|
||||||
"public-message-identity-ngm-version": 12.0,
|
"public-message-identity-ngm-version": 12.0,
|
||||||
|
"ngm-public-identity": ngm.generate_loggable_data()
|
||||||
|
|
||||||
#"device-key-signature": b"0a\x04\x14\x1d\xb02~\xefk&\xf8\r;R\xa4\x95c~\x8a\x90H\x85\xb0\x02\x01\x01\x04F0D\x02 @\xce\xa7P6\x89\x92Wf\x87\xc9\xc5M-\xb1\xe5Q\x9f\x7fKi\x1bp\xd5\x12\x1c,:\xdb\xed\x08\x12\x02 l\xfd\\\xe2\xd3:,\xc1\xd8\x08|\xbe\x05M\x12\xee@\xc2=eR8:\xa7h3u|\x83ia\x19",
|
#"device-key-signature": b"0a\x04\x14\x1d\xb02~\xefk&\xf8\r;R\xa4\x95c~\x8a\x90H\x85\xb0\x02\x01\x01\x04F0D\x02 @\xce\xa7P6\x89\x92Wf\x87\xc9\xc5M-\xb1\xe5Q\x9f\x7fKi\x1bp\xd5\x12\x1c,:\xdb\xed\x08\x12\x02 l\xfd\\\xe2\xd3:,\xc1\xd8\x08|\xbe\x05M\x12\xee@\xc2=eR8:\xa7h3u|\x83ia\x19",
|
||||||
},
|
},
|
||||||
"kt-loggable-data": ngm.generate_loggable_data(),
|
# "kt-loggable-data": ngm.generate_loggable_data(),
|
||||||
|
|
||||||
"uris": uris,
|
"uris": uris,
|
||||||
"user-id": user_id,
|
"user-id": user_id,
|
||||||
|
|
Loading…
Reference in a new issue