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}")
uris = [{"uri": handle} for handle in handles]
import uuid
body = {
"device-name": "pypush",
"hardware-version": "MacBookPro18,3",
"language": "en-US",
"os-version": "macOS,13.2.1,22D68",
"software-version": "22D68",
"private-device-data": {
"u": uuid.uuid4().hex.upper(),
},
"services": [
{
"capabilities": [{"flags": 1, "name": "Messenger", "version": 1}],