1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-16 10:31:39 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Fix until int conversion

This commit is contained in:
sunnylqm
2021-06-24 15:13:03 +08:00
parent daf870fd75
commit d4d12e1889

View File

@@ -138,7 +138,7 @@ function checkOperation(op) {
if (action.type === 'block') {
blockUpdate = {
reason: action.reason,
until: (Date.now() + action.duration) / 1000,
until: Math.round((Date.now() + action.duration) / 1000),
};
Pushy.setBlockUpdate(blockUpdate);
}