Bug fixes
- wtv-tricks:/unregister properly deletes SSID folder - Registration properly saves account data if SSID folder doesn't exist - do not send wtv-mail-count if SSID is not yet registered - Registration now correctly creates the welcome message for user0 - update wtv-tricks:/unregister to only allow the primary user to unregister the account
This commit is contained in:
@@ -747,8 +747,10 @@ async function sendToClient(socket, headers_obj, data) {
|
||||
|
||||
if (!headers_obj['minisrv-no-mail-count']) {
|
||||
if (ssid_sessions[socket.ssid]) {
|
||||
if (ssid_sessions[socket.ssid].mailstore) {
|
||||
headers_obj['wtv-mail-count'] = ssid_sessions[socket.ssid].mailstore.countUnreadMessages(0);
|
||||
if (ssid_sessions[socket.ssid].isRegistered()) {
|
||||
if (ssid_sessions[socket.ssid].mailstore) {
|
||||
headers_obj['wtv-mail-count'] = ssid_sessions[socket.ssid].mailstore.countUnreadMessages(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user