1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Retain $:/status/UserName when logged out (#2893)

The user name tiddler should not be removed just because we are not logged in
This commit is contained in:
Daniel Rodríguez Rivero 2018-05-09 15:22:55 +02:00 committed by Jeremy Ruston
parent 3816819705
commit 4c89bbabbe

View File

@ -178,8 +178,6 @@ Syncer.prototype.getStatus = function(callback) {
self.wiki.addTiddler({title: self.titleIsLoggedIn,text: isLoggedIn ? "yes" : "no"});
if(isLoggedIn) {
self.wiki.addTiddler({title: self.titleUserName,text: username || ""});
} else {
self.wiki.deleteTiddler(self.titleUserName);
}
// Invoke the callback
if(callback) {