Browse Source

Move where emoji migration is fired to match the new emoji work

pull/2438/head
Gabe Kangas 3 years ago
parent
commit
1d248a144b
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 1
      core/core.go
  2. 6
      main.go

1
core/core.go

@ -36,7 +36,6 @@ func Start() error { @@ -36,7 +36,6 @@ func Start() error {
resetDirectories()
data.PopulateDefaults()
utils.MigrateCustomEmojiLocations()
if err := data.VerifySettings(); err != nil {
log.Error(err)

6
main.go

@ -48,7 +48,11 @@ func main() { @@ -48,7 +48,11 @@ func main() {
log.Fatalln("Cannot create data directory", err)
}
}
// Set up emoji directory
// Migrate old (pre 0.1.0) emoji to new location if they exist.
utils.MigrateCustomEmojiLocations()
// Otherwise save the default emoji to the data directory.
if err := data.SetupEmojiDirectory(); err != nil {
log.Fatalln("Cannot set up emoji directory", err)
}

Loading…
Cancel
Save