Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // matrix.once('sync', state => {
- // if (state === 'PREPARED') {
- // // @ts-ignore
- // const sync = matrix._syncApi._sync;
- // // @ts-ignore
- // matrix._syncApi._sync = function(syncOptions: object) {
- // // @ts-ignore
- // syncOptions.filterId = undefined;
- // return sync.apply(this, [syncOptions]);
- // };
- // }
- // });
- // @ts-ignore
- function override(object, methodName, callback) {
- object[methodName] = callback(object[methodName]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement