mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-16 13:11:39 +08:00
Fix until int conversion
This commit is contained in:
@@ -138,7 +138,7 @@ function checkOperation(op) {
|
|||||||
if (action.type === 'block') {
|
if (action.type === 'block') {
|
||||||
blockUpdate = {
|
blockUpdate = {
|
||||||
reason: action.reason,
|
reason: action.reason,
|
||||||
until: (Date.now() + action.duration) / 1000,
|
until: Math.round((Date.now() + action.duration) / 1000),
|
||||||
};
|
};
|
||||||
Pushy.setBlockUpdate(blockUpdate);
|
Pushy.setBlockUpdate(blockUpdate);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user