Mercurial > prosody-modules
comparison mod_voipms/mod_voipms.lua @ 6307:c194bec4b56d
mod_voipms: Fix bug from not returning in message/bare hook
Since SMS/MMS are sent/received on JIDs that are not real accounts, we
need to `return true` from the 'message/bare' hook, otherwise routing
will occur and result in failed account lookups.
| author | Chaz Kettleson <chaz@pyr3x.com> |
|---|---|
| date | Fri, 01 Aug 2025 18:36:47 -0400 |
| parents | 8689f49d21ef |
| children | 8f2de6652930 |
comparison
equal
deleted
inserted
replaced
| 6306:093c47ee2041 | 6307:c194bec4b56d |
|---|---|
| 184 end | 184 end |
| 185 else | 185 else |
| 186 module:log("error", "HTTP error sending %s: code %s", method, tostring(code)) | 186 module:log("error", "HTTP error sending %s: code %s", method, tostring(code)) |
| 187 end | 187 end |
| 188 end) | 188 end) |
| 189 | |
| 190 return true | |
| 189 end) | 191 end) |
