fix(send): send to known LIDs passed as phone numbers; expose version
Integrations that store the contact's LID as its number (255284433936406) failed with 'no LID found for [email protected]'. When the number is not a registered phone and the instance's LID store maps it to a phone number, send to <number>@lid instead. GET /server/ok now also returns the running version, so a deployment can be checked without reading the startup log. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
c9511a636e
commit
b140fdb390
6 files changed
+91
-4
No files matched your search
@@ -239,7 +239,7 @@ func setupRouter(db *gorm.DB, authDB *sql.DB, sqliteDB *sql.DB, config *config.C
|
||||
label_handler.NewLabelHandler(labelService),
|
||||
newsletter_handler.NewNewsletterHandler(newsletterService),
|
||||
pollHandler,
|
||||
server_handler.NewServerHandler(),
|
||||
server_handler.NewServerHandler(version),
|
||||
).AssignRoutes(r)
|
||||
|
||||
if config.ConnectOnStartup {
|
||||
|
||||
Reference in new issue
Block a user