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:
parent
d1bb7159b8
commit
464d17b522
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user