Browse Source

changed client message cache to a day

0xdcarns 3 years ago
parent
commit
8da999f21d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      netclient/functions/daemon.go

+ 1 - 1
netclient/functions/daemon.go

@@ -328,7 +328,7 @@ func read(network, which string) string {
 		if readMessage.LastSeen.IsZero() {
 			return ""
 		}
-		if time.Now().After(readMessage.LastSeen.Add(time.Minute * 10)) { // check if message has been there over a minute
+		if time.Now().After(readMessage.LastSeen.Add(time.Hour * 24)) { // check if message has been there over a minute
 			messageCache.Delete(fmt.Sprintf("%s%s", network, which)) // remove old message if expired
 			return ""
 		}