core: use migrations to dedup shortcuts

This commit is contained in:
Abdullah Atta
2022-10-17 22:37:23 +05:00
parent 577d50b512
commit cf8ed91102
2 changed files with 6 additions and 23 deletions

View File

@@ -110,7 +110,12 @@ const migrations = [
if (!item.data || item.data.iv) return item;
item.type = "tiptap";
return item;
},
},
shortcut: (item) => {
if (item.id === item.item.id) return item;
item.id = item.item.id;
return item;
},
tiptap: (item) => {
return changeSessionContentType(item);
},