Add Ability to Logout #50
Labels
No Label
client
server
user made
L
M
S
XL
bug
bugfix
discussion
documentation
feature
maintenance
postponed
refactoring
wontfix
No Milestone
No Assignees
2 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: zdm/envoy#50
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "f/logout"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Additionally added keyboard shortcuts and system commands for logout, exit and switching to the settings scene
Looks good to me, please fix the cosmetics though 😆
@ -40,6 +40,10 @@ public final class LocalDB implements EventListener {
private CacheMap cacheMap = new CacheMap();
private String authToken;
// auto save Timer
This should be
// Auto save time
.you mean
// Auto save timer
?@ -170,1 +174,3 @@
new Timer("LocalDB Autosave", true).schedule(new TimerTask() {
if (autoSaveRestart) {
// A logout happened so the timer should be restarted
Maybe move the comment above the
if
statement.@ -215,0 +229,4 @@
* @since Envoy Client v0.2-beta
*/
@Event(eventType = Logout.class, priority = 100)
public void onLogout() {
Why is this public?
@ -215,0 +238,4 @@
authToken = null;
chats.clear();
lastSync = Instant.EPOCH;
cacheMap.getMap().forEach((key, cache) -> cache.clear());
Please remove the comment and add a clearing method to
CacheMap
.@ -0,0 +5,4 @@
/**
* Indicates that a logout has been requested.
*
* @author leon
Fix your
@author
tag.@ -0,0 +10,4 @@
* @author Leon Hofmeister
* @since Envoy Client v0.2-beta
*/
public class AlertHelper {
Make this
final
.@ -0,0 +13,4 @@
import dev.kske.eventbus.EventBus;
/**
* Contains methods that have a direct impact on the user.
What on earth does that even mean?
Changed it now.
If you don't like it, suggest a better alternative.
I cannot think of one.
@ -0,0 +18,4 @@
* @author Leon Hofmeister
* @since Envoy Client v0.2-beta
*/
public class ShutdownHelper {
Make this
final
.