1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 05:19:57 +00:00

Update last known tiddler ID for events delivered via SSE

This commit is contained in:
Jeremy Ruston 2024-03-25 17:43:29 +00:00
parent d1bb7159b8
commit 464d17b522

View File

@ -181,6 +181,9 @@ MultiWikiClientAdaptor.prototype.connectServerStream = function(options) {
if(data) {
console.log("SSE data",data)
if(data.is_deleted) {
if(data.tiddler_id > self.last_known_tiddler_id) {
self.last_known_tiddler_id = data.tiddler_id;
}
self.removeTiddlerInfo(data.title);
delete options.syncer.tiddlerInfo[data.title];
options.syncer.logger.log("Deleting tiddler missing from server:",data.title);