Compare commits
1 Commits
v1.7.0
...
33064d22a3
| Author | SHA1 | Date | |
|---|---|---|---|
| 33064d22a3 |
@@ -46,6 +46,15 @@ func (s *Server) handleTelegramAuth(c *gin.Context) {
|
|||||||
s.abortErr(c, err)
|
s.abortErr(c, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// TEMP DEBUG (revert before merge): trace the language_code Telegram actually sent and
|
||||||
|
// what we seeded, to settle the "ru interface" question on the test contour.
|
||||||
|
s.log.Info("telegram auth debug",
|
||||||
|
zap.String("external_id", req.ExternalID),
|
||||||
|
zap.String("language_code", req.LanguageCode),
|
||||||
|
zap.String("username", req.Username),
|
||||||
|
zap.String("start_param", req.StartParam),
|
||||||
|
zap.Bool("created", created),
|
||||||
|
zap.Strings("variant_preferences", acc.VariantPreferences))
|
||||||
if created {
|
if created {
|
||||||
// First registration: re-evaluate moderated-chat write access, so a user who
|
// First registration: re-evaluate moderated-chat write access, so a user who
|
||||||
// joined the chat before registering is granted on the spot (no chat_member
|
// joined the chat before registering is granted on the spot (no chat_member
|
||||||
|
|||||||
Reference in New Issue
Block a user