mirror of
https://github.com/aljazceru/meshcore-web.git
synced 2025-12-20 01:24:20 +01:00
implement manually retrying failed messages
This commit is contained in:
@@ -114,14 +114,19 @@ class Message {
|
||||
$eq: id,
|
||||
},
|
||||
},
|
||||
sort: [
|
||||
{
|
||||
timestamp: "desc",
|
||||
},
|
||||
],
|
||||
}).exec();
|
||||
}
|
||||
|
||||
static async deleteMessageById(id) {
|
||||
return await database.messages.findOne({
|
||||
selector: {
|
||||
id: {
|
||||
$eq: id,
|
||||
},
|
||||
},
|
||||
}).incrementalRemove();
|
||||
}
|
||||
|
||||
// mark a message as delivered by its ack code
|
||||
static async setMessageDeliveredByAckCode(ackCode) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user