Clean out old emojis on reload
This commit is contained in:
parent
2d4b8f3d20
commit
b0ecd412f5
|
@ -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 New Issue