core: expire chat items for all users (#1737)

This commit is contained in:
JRoberts
2023-01-13 21:01:26 +04:00
committed by GitHub
parent cccdcef914
commit 0c3d643408
2 changed files with 65 additions and 50 deletions
+2 -2
View File
@@ -129,8 +129,8 @@ data ChatController = ChatController
config :: ChatConfig,
filesFolder :: TVar (Maybe FilePath), -- path to files folder for mobile apps,
incognitoMode :: TVar Bool,
expireCIsAsync :: TVar (Maybe (Async ())),
expireCIs :: TVar Bool,
expireCIThreads :: TMap UserId (Maybe (Async ())),
expireCIFlags :: TMap UserId Bool,
cleanupManagerAsync :: TVar (Maybe (Async ())),
timedItemThreads :: TMap (ChatRef, ChatItemId) (TVar (Maybe (Weak ThreadId))),
showLiveItems :: TVar Bool