Move where emoji migration is fired to match the new emoji work
This commit is contained in:
parent
d49f001688
commit
1d248a144b
@ -36,7 +36,6 @@ func Start() error {
|
|||||||
resetDirectories()
|
resetDirectories()
|
||||||
|
|
||||||
data.PopulateDefaults()
|
data.PopulateDefaults()
|
||||||
utils.MigrateCustomEmojiLocations()
|
|
||||||
|
|
||||||
if err := data.VerifySettings(); err != nil {
|
if err := data.VerifySettings(); err != nil {
|
||||||
log.Error(err)
|
log.Error(err)
|
||||||
|
6
main.go
6
main.go
@ -48,7 +48,11 @@ func main() {
|
|||||||
log.Fatalln("Cannot create data directory", err)
|
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 {
|
if err := data.SetupEmojiDirectory(); err != nil {
|
||||||
log.Fatalln("Cannot set up emoji directory", err)
|
log.Fatalln("Cannot set up emoji directory", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user