Commit graph

27 commits

Author SHA1 Message Date
Darren Clarke
d93797172a Add preference for signal notifications to bot setup screen 2026-01-28 14:46:34 +01:00
Darren Clarke
38efae02d4 Merge feature/split-signal-improvements into combined branch
Combines Signal split/merge improvements with keycloak auth,
baileys-7 updates, and signal notifications support.

Resolved conflicts:
- Kept LID user ID support in bridge-whatsapp
- Kept bridge-dev.yml docker compose addition
- Used 3.5.0-beta.1 version from split-signal-improvements
2026-01-28 09:01:51 +01:00
Darren Clarke
b9324cf11c WIP: Add Signal notification support for Zammad agents 2026-01-28 08:58:29 +01:00
Darren Clarke
72b52463a2 Bump version to 3.4.0-beta.7 2026-01-21 10:10:55 +01:00
Darren Clarke
ac42d7df78 Use _uid instead of _id to please Rails 2026-01-19 16:51:51 +01:00
Darren Clarke
87bb05fdd5 Bump version to 3.4.0-beta.5 2026-01-15 16:51:20 +01:00
Darren Clarke
3d8f794cab Add user ID support for Baileys 7 LIDs and Signal UUIDs
Baileys 7 uses LIDs (Linked IDs) instead of phone numbers in remoteJid for
some messages. This caused messages to be matched to wrong tickets because
the LID was used as the sender identifier. This commit adds proper support
for both phone numbers and user IDs across WhatsApp and Signal channels.

Changes:

Database:
- Add migration for whatsapp_user_id and signal_user_id fields on users table

Zammad controllers:
- Update user lookup with 3-step fallback: phone → dedicated user_id field →
  user_id in phone field (legacy)
- Store user IDs in dedicated fields when available
- Update phone field when we receive actual phone number for legacy records
- Fix redundant condition in Signal controller

Bridge services:
- Extract both phone (from senderPn/participantPn) and LID (from remoteJid)
- Send both identifiers to Zammad via webhooks
- Use camelCase (userId) in bridge-whatsapp, convert to snake_case (user_id)
  in bridge-worker for Zammad compatibility

Baileys 7 compliance:
- Remove broken loadAllUnreadMessages() call (removed in Baileys 7)
- Return descriptive error directing users to use webhooks instead

Misc:
- Add docs/ to .gitignore
2026-01-15 13:08:56 +01:00
Darren Clarke
57d7173485 Bump version to 3.4.0-beta.4 2026-01-14 11:33:11 +01:00
Darren Clarke
3b91c98d5e Bump version to 3.5.0-beta.1 2026-01-12 10:44:49 +01:00
Darren Clarke
a882c9ecff Split ticket and group name fixes 2025-12-19 15:27:27 +01:00
Darren Clarke
69394c813d Prevent overwriting a Signal group in Zammad if one already exists 2025-12-19 12:52:47 +01:00
Darren Clarke
0b2ea19ebc Add Signal group ticket split compatibility 2025-12-19 12:38:49 +01:00
Darren Clarke
f059e75acd Add warning for unsent Signal groups messages. 2025-12-19 11:37:20 +01:00
Darren Clarke
41b825c1c7 Update deps 2025-12-17 15:35:28 +01:00
Darren Clarke
b59f588efd Update version 2025-12-06 08:00:15 +01:00
Darren Clarke
31eb1d92b4 Fix for sending to WhatsApp user IDs 2025-12-04 13:40:04 +01:00
Darren Clarke
ed807ee645 Update version to 3.3.2 2025-11-22 10:57:18 +01:00
Darren Clarke
3caf1a5ec1 Update version 2025-11-21 17:33:12 +01:00
Darren Clarke
d0cc5a21de WhatsApp/Signal/Formstack/admin updates 2025-11-21 14:55:28 +01:00
Darren Clarke
d67f294925 Update version and build env var 2024-08-28 10:28:59 +02:00
Darren Clarke
a8dc0b3647 Update versions 2024-08-14 11:13:58 +02:00
Darren Clarke
a4053e6412 Zammad send fixes, update deps 2024-08-14 10:51:12 +02:00
Darren Clarke
441a2aebbc Update send params: phoneNumber -> to 2024-07-31 09:43:59 +02:00
Darren Clarke
5e2475848e Signal send/receive fixes 2024-07-31 08:56:28 +02:00
Darren Clarke
a649640b8c Fix package migrations, update deps 2024-07-03 17:16:09 +02:00
Darren Clarke
85a0fc11e5 Update package names 2024-06-05 08:52:41 +02:00
Darren Clarke
a445762a37 Metamigo -> Bridge 2024-04-21 09:44:30 +02:00