2022-03-19 21:19:14 +01:00

14 lines
326 B
TypeScript

import { addActionHandler } from '../../index';
import { updateStickerSet } from '../../reducers';
addActionHandler('apiUpdate', (global, actions, update) => {
switch (update['@type']) {
case 'updateStickerSet': {
return updateStickerSet(global, update.id, update.stickerSet);
}
}
return undefined;
});