forked from AkkomaGang/akkoma
Clean out old emojis on reload
This commit is contained in:
parent
2d4b8f3d20
commit
b0ecd412f5
1 changed files with 3 additions and 0 deletions
|
@ -122,6 +122,9 @@ defp load do
|
|||
fn pack -> load_pack(Path.join(emoji_dir_path, pack), emoji_groups) end
|
||||
)
|
||||
|
||||
# Clear out old emojis
|
||||
:ets.delete_all_objects(@ets)
|
||||
|
||||
true = :ets.insert(@ets, emojis)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue