changed client message cache to a day

This commit is contained in:
0xdcarns 2022-07-05 20:22:34 -04:00
parent d3b84f7814
commit 8da999f21d

View file

@ -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 ""
}