Remove mtime
This commit is contained in:
@@ -70,8 +70,7 @@
|
||||
"notifications_delete": "Delete",
|
||||
"notifications_copied_to_clipboard": "Copied to clipboard",
|
||||
"notifications_tags": "Tags",
|
||||
"notifications_sid": "Sequence ID",
|
||||
"notifications_revisions": "Revisions",
|
||||
"notifications_modified": "modified {{date}}",
|
||||
"notifications_priority_x": "Priority {{priority}}",
|
||||
"notifications_new_indicator": "New notification",
|
||||
"notifications_attachment_image": "Attachment image",
|
||||
|
||||
@@ -25,9 +25,6 @@ const addNotification = async ({ subscriptionId, message }) => {
|
||||
const db = await dbAsync();
|
||||
const populatedMessage = message;
|
||||
|
||||
if (!("mtime" in populatedMessage)) {
|
||||
populatedMessage.mtime = message.time * 1000;
|
||||
}
|
||||
if (!("sid" in populatedMessage)) {
|
||||
populatedMessage.sid = message.id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user