add uuid to registration message to make sms forwarding happy

This commit is contained in:
JJTech0130 2023-08-12 07:36:30 -04:00
parent 182210cf9c
commit dfc6302b3d
No known key found for this signature in database
GPG key ID: 23C92EBCCF8F93D6

View file

@ -93,13 +93,16 @@ def register(
): ):
logger.debug(f"Registering IDS identity for {handles}") logger.debug(f"Registering IDS identity for {handles}")
uris = [{"uri": handle} for handle in handles] uris = [{"uri": handle} for handle in handles]
import uuid
body = { body = {
"device-name": "pypush", "device-name": "pypush",
"hardware-version": "MacBookPro18,3", "hardware-version": "MacBookPro18,3",
"language": "en-US", "language": "en-US",
"os-version": "macOS,13.2.1,22D68", "os-version": "macOS,13.2.1,22D68",
"software-version": "22D68", "software-version": "22D68",
"private-device-data": {
"u": uuid.uuid4().hex.upper(),
},
"services": [ "services": [
{ {
"capabilities": [{"flags": 1, "name": "Messenger", "version": 1}], "capabilities": [{"flags": 1, "name": "Messenger", "version": 1}],