14 lines
326 B
TypeScript
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;
|
|
});
|