matrix-hacks / matrix-puppet-signal

A Signal bridge for Matrix
57 stars 15 forks source link

Group IDs need conversion #21

Closed nr23730 closed 5 years ago

nr23730 commented 5 years ago

Group IDs are saved in a ArrayBuffer. As they contain non-unicode characters the Group ID provided by Signal can't be used as Matrix Room ID.

Probably the required steps are:

  1. Recieve a message from a group with ArrayBuffer as ID
  2. Generate something unique as ID for Matrix Room (like UUID), if none exists
  3. Permanent save ArrayBuffer together with unique ID to disk
  4. When sending to a group, lookup for ArrayBuffer in permenent storage
nr23730 commented 5 years ago

Group syncing is now working. This gives valid group IDs we can use.