Skip to content

Commit

Permalink
legacyprovision: trim tel: prefix in start chat requests
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Aug 30, 2024
1 parent 79dad16 commit 4e35033
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/mautrix-gmessages/legacyprovision.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ func legacyProvStartChat(w http.ResponseWriter, r *http.Request) {
ErrCode: "bad json",
})
}
for i, num := range req.Numbers {
req.Numbers[i] = strings.TrimPrefix(num, "tel:")
}
api := userLogin.Client.(bridgev2.GroupCreatingNetworkAPI)
var err error
var resp *bridgev2.CreateChatResponse
Expand Down

0 comments on commit 4e35033

Please sign in to comment.