1
0
Fork 0
mirror of https://github.com/mautrix/signal.git synced 2026-05-14 21:26:54 -04:00
Commit graph

1,725 commits

Author SHA1 Message Date
Tulir Asokan
9495ea7020 Update dependencies and minimum Go version 2024-02-10 14:38:32 +02:00
Tulir Asokan
c9d97fd1e5 Run actions on Go 1.21 and 1.22 2024-02-10 14:38:32 +02:00
Tulir Asokan
53547f9201 Revert "Check dm.Quote for nil"
This reverts commit cb04120757.
2024-02-10 14:38:32 +02:00
Tulir Asokan
2109782afd Remove info parameter in Puppet.UpdateInfo 2024-02-10 14:38:32 +02:00
Tulir Asokan
27d6ae89ea Remove some unnecessary logs 2024-02-10 14:38:32 +02:00
David AUFFRAY
8de9493edc
Fix word in example config (#446) 2024-02-10 14:37:58 +02:00
Andrew Ferrazzutti
ae7ccf4fdf
Restore debug build & remote debugging for Docker builds (#436) 2024-02-10 14:37:02 +02:00
Andrew Ferrazzutti
7761199303
Use Stringer with zerolog (#441)
Satisfies the "zerolog-use-stringer" pre-commit hook
2024-02-10 14:36:05 +02:00
Andrew Ferrazzutti
af4de369bd
Satisfy static checks (#440) 2024-02-10 14:35:56 +02:00
Scott Weber
103666990f
Use clang when building for Android and darwin (#435) 2024-01-31 10:39:33 -05:00
Scott Weber
cb04120757 Check dm.Quote for nil 2024-01-29 14:54:20 -05:00
Andrew Ferrazzutti
f5468a6e8c
Avoid nil dereference on existing reaction lookup (#433)
Otherwise, the bridge crashes when it sees a reaction from Signal.

---

This fixes a crash introduced by 666ccf1.
2024-01-26 15:42:34 +02:00
Andrew Ferrazzutti
ee5932bbd9
Ensure user is invited to portal on message (#430) 2024-01-26 15:00:03 +02:00
Andrew Ferrazzutti
ea4522bd17
Deduplicate users' UUIDs during schema upgrade (#429)
Otherwise, upgrading to v16 may hit conflicts if two users share the
same Signal UUID, which was possible in prior DB versions.

---

This is useful only when upgrading a DB from the signald version of the
bridge, where some Matrix users had logged into the same Signal account
(and thus shared the same UUID in the "users" table).

Though this removes Signal UUID associations from Matrix users,
migrating from the signald version requires re-logging in anyways.

The only time this would not be safe is when migrating a DB that had
already been migrated from signald (i.e. a v13-v15 version) and users
logged back in, with some sharing the same Signal UUID.
2024-01-26 14:58:43 +02:00
Andrew Ferrazzutti
e938532440
Add whoami provisioning API (#428) 2024-01-26 14:58:04 +02:00
Tulir Asokan
bc03cee3e1 Delete reaction with bridge bot if ghost fails. Closes #431 2024-01-25 23:42:18 +02:00
Tulir Asokan
666ccf11fb Ignore duplicate reactions from Signal (ref #431) 2024-01-25 23:42:18 +02:00
Tulir Asokan
60263e7529 Fix avatar change deduplication based on hash 2024-01-24 14:36:27 +02:00
Tulir Asokan
931e25b453 Update to libsignal 0.39.2 2024-01-22 01:22:13 +02:00
Tulir Asokan
d9844f9afd Check if table exists to avoid spurious error. Fixes #426 2024-01-19 17:43:25 +02:00
Tulir Asokan
6d53efde33 Handle edge case in portal table upgrade 2024-01-18 23:12:39 +02:00
Tulir Asokan
d22676650f Revert "Add temporary debugging logs"
This reverts commit 972b289887.
2024-01-18 22:52:15 +02:00
Tulir Asokan
a546300b77 Update usersBySignalID when logging in
Also partially clear any previous users if they have the same UUID
2024-01-18 22:52:12 +02:00
Scott Weber
972b289887 Add temporary debugging logs 2024-01-16 19:46:16 -05:00
Tulir Asokan
b054aa9dd2 Update dependencies 2024-01-17 00:07:21 +02:00
Tulir Asokan
d482bca041 Add method to fetch records from storage service 2024-01-14 22:22:33 +02:00
Tulir Asokan
57b87faee7 Add storage service protobuf schema 2024-01-14 20:36:15 +02:00
Tulir Asokan
ea0dfaa61a Set user agents in signal requests 2024-01-14 13:31:17 +02:00
Tulir Asokan
c0ce824b6a Save libsignal version in go file 2024-01-14 13:20:04 +02:00
Tulir Asokan
fca8ff8eab Update dependencies 2024-01-13 19:03:26 +02:00
Tulir Asokan
91b0e7e482 Add support for incoming contact messages 2024-01-13 18:21:09 +02:00
Tulir Asokan
cc5177bc15 Use ensureInvited in pm command
Fixes #232
Fixes #40
2024-01-13 17:17:32 +02:00
Tulir Asokan
7b8bcdd9e8 Hook up CDSI to pm command and provisioning API 2024-01-13 17:11:51 +02:00
Tulir Asokan
f2684ef1f3 Add test command for CDSI 2024-01-13 16:33:44 +02:00
Tulir Asokan
b9f29abfcf Add CDSI client 2024-01-13 16:26:29 +02:00
Tulir Asokan
f596eb75cc Only update phone number if it's available 2024-01-13 14:21:53 +02:00
Tulir Asokan
4d1cfed402 Don't hardcode tel: address in beeper identifier list 2024-01-13 14:21:31 +02:00
Tulir Asokan
ba5728c69c Update protobufs and add ContactDiscovery schema 2024-01-13 14:20:08 +02:00
Tulir Asokan
e631a350aa Update to libsignal 0.39.1 2024-01-13 14:18:16 +02:00
Scott Weber
de8c8d97c2 Fix BAD_CREDENTIALS / UNCONFIGURED race 2024-01-10 12:17:05 -05:00
Scott Weber
4602d8b91f Fix a long log 2024-01-09 13:51:09 -05:00
Scott Weber
632f06fcd5
Merge pull request #420 from mautrix/upload-prekeys
Upload prekeys when low
2024-01-09 12:18:09 -05:00
Scott Weber
f24c94b011 Upload all unused prekeys every time, and change delay logic 2024-01-09 12:03:56 -05:00
Scott Weber
d9a8f7bedc Generate and register more prekeys if we're running low 2024-01-09 11:19:36 -05:00
Tulir Asokan
121c81a783 Update changelog
[skip ci]
2024-01-09 16:20:49 +02:00
Tulir Asokan
4408488573
Retry without sealed sender if send fails with 401 (#419) 2024-01-09 15:33:09 +02:00
Tulir Asokan
4aaea04d41 Clean up linking code 2024-01-09 13:29:05 +02:00
Sumner Evans
a082ca14ff
staticcheck: fix SA5011: possible nil pointer dereference
Signed-off-by: Sumner Evans <me@sumnerevans.com>
2024-01-08 09:40:24 -07:00
Sumner Evans
c456d6ed03
staticcheck: fix S1012,S1024: use time.Until and time.Since
Signed-off-by: Sumner Evans <me@sumnerevans.com>
2024-01-08 09:36:55 -07:00
Sumner Evans
1fbdaa3028
staticcheck: fix S1021: merge variable declaration with assignment on next line
Signed-off-by: Sumner Evans <me@sumnerevans.com>
2024-01-08 09:36:53 -07:00