]> git.giacomolli.uk - onechat/commit
Show the linked device as OneChat on the phone
authorAnderson A. Giacomolli <redacted>
Sun, 8 Nov 2026 22:21:11 +0000 (19:21 -0300)
committerAnderson A. Giacomolli <redacted>
Sun, 8 Nov 2026 23:15:49 +0000 (20:15 -0300)
commitb1095a9efc2d57d0c13a043f3feaddbdec789512
tree9532a17b0a4b289adf1e9c814c7351efa6c87c11
parent33aa709aa4e59e05ada6940a1c055f5e5646a418
Show the linked device as OneChat on the phone

The daemon sets the device properties of the library once before any
client exists, because they are global values of the library. The
properties have the OS name OneChat and the desktop platform type.
Without a known platform type, the phone ignores the name and shows the
device as "Other device".

The display name of the phone code pairing stays "Chrome (Linux)": the
server accepts only the form "Browser (OS)" with a common browser and
OS, and refuses the pairing otherwise. A comment says so.

The name applies at the pairing, so an existing link keeps its old name
until the user unlinks and pairs again.
README.rst
daemon.go
whatsapp.go