Align GoChat with Chatwoot frontend contracts

This commit is contained in:
2026-06-13 22:13:32 +08:00
parent 71abf58636
commit d884fdda0a
162 changed files with 9825 additions and 528 deletions
@@ -257,6 +257,7 @@ func (h *TwilioWebhookHandler) lookupInboxByPhoneNumber(phoneNumber string) (*mo
if h.db == nil {
return nil, fmt.Errorf("twilio webhook database is not configured")
}
phoneNumber = normalizeTwilioPhone(phoneNumber)
var channel channelmodel.ChannelTwilioSMS
if err := h.db.Where("phone_number = ?", phoneNumber).First(&channel).Error; err != nil {