signal icon indicating copy to clipboard operation
signal copied to clipboard

Some usernames are not synced from signald

Open NCLI opened this issue 4 years ago • 11 comments

What happens:

  1. A message arrives from another user, either as a private message, or through a group.
  2. The user is often only identified by their phone number, or as "unknown user".

What should happen:

  1. A message arrives from another user, either as a private message, or through a group.
  2. The user is identified by their username.

When I look users or groups up directly using signald, the names are there. Something seems to be broken in between signald and the bridge, The command "!signal sync" does nothing, other than reply "Sync complete".

NCLI avatar Oct 21 '21 19:10 NCLI

Are you using an up to date version of the bridge?

tulir avatar Oct 21 '21 19:10 tulir

Yes, just installed it using the guide on matrix.org a few days ago.

NCLI avatar Oct 21 '21 20:10 NCLI

Update again. @tulir added a change this morning that fixes your issue in many cases: https://github.com/mautrix/signal/commit/e4de70e3cab4db55ebf8cc3cb9551844acc0ab44

sumnerevans avatar Oct 21 '21 20:10 sumnerevans

I'm on mautrix-signal 0.2.0 according to the log. I just ran pip install --upgrade mautrix-signal[all], but nothing seems to have changed. Asked it to sync again, and restarted my client too, as well as setting periodic_sync to 5.

Any config options I should double-check?

NCLI avatar Oct 21 '21 20:10 NCLI

The changes are not in a release yet. I think you can do a pip install and point it at this repo.

sumnerevans avatar Oct 22 '21 03:10 sumnerevans

My bridge is affected by the same issue. But not some, all contacts are missing. :-(

Do I have any possibility to test the fix with a docker-compose installation?

moj02090 avatar Oct 22 '21 09:10 moj02090

For me, I think I'll wait for a proper release. Any idea on an ETA for that @tulir ?

While this is extremely annoying, nothing is actually broken. So I'd prefer to stick to the "production" deployment, as recommended by the setup instructions. Don't have time to deal with serious breakage right now.

NCLI avatar Oct 22 '21 09:10 NCLI

Releases happen occasionally, there's no schedule

@moj02090 the :latest docker tag will use the master branch. You can also use commit hash + architecture (e.g. :181f87ab2516fdfae64337eec476f9e285c500bb-amd64).

Also keep in mind that contact names won't be synced by default because that would make a mess in multi-user instances. If you're the only user of the bridge, contact list sync can be enabled in the config: https://github.com/mautrix/signal/blob/master/mautrix_signal/example-config.yaml#L109-L114

tulir avatar Oct 22 '21 09:10 tulir

Ok, I set that to prefer now. How long would you expect it to take before I see changes, if it works?

Also, what names are used if that is set to disallowed? Some users did show up with "proper" names, after all.

NCLI avatar Oct 22 '21 09:10 NCLI

@tulir okay I made a docker-compose pull and restarted my containers now I see the contact names.

But just to be sure: If I want to use the bridge in a multi-user environment is it not possible to show me names of signal contacts and you can work only with the phone number? So only the format "<E.164 Number> (Signal)" is available. Did I understand this correctly?

moj02090 avatar Oct 22 '21 14:10 moj02090

Signal profile names also work better now (but sometimes don't work). Those are enabled by default and work on multi-user instances. Contact names are more reliable since they don't involve complicated signal crypto

tulir avatar Oct 22 '21 14:10 tulir