Skip to content

Commit

Permalink
Add missing config copy lines
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jun 3, 2024
1 parent 68d6a07 commit df9251e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ func DoUpgrade(helper *up.Helper) {
helper.Copy(up.Bool, "meta", "ig_e2ee")
helper.Copy(up.Str|up.Null, "meta", "proxy")
helper.Copy(up.Str|up.Null, "meta", "get_proxy_from")
helper.Copy(up.Int, "meta", "min_full_reconnect_interval_seconds")
helper.Copy(up.Int, "meta", "force_refresh_interval_seconds")

if usernameTemplate, ok := helper.Get(up.Str, "bridge", "username_template"); ok && strings.Contains(usernameTemplate, "{userid}") {
helper.Set(up.Str, strings.ReplaceAll(usernameTemplate, "{userid}", "{{.}}"), "bridge", "username_template")
Expand Down

0 comments on commit df9251e

Please sign in to comment.