core: stop stats when chat is stopped (#4616)

* core: stop stats when chat is stopped

* rename field

* simplexmq
This commit is contained in:
Evgeny
2024-08-07 14:49:58 +01:00
committed by GitHub
parent c0b8cfb3e2
commit b3d15f97f0
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1933,7 +1933,7 @@ public enum DatabaseError: Decodable, Hashable {
public enum SQLiteError: Decodable, Hashable {
case errorNotADatabase
case error(String)
case error(dbError: String)
}
public enum AgentErrorType: Decodable, Hashable {
@@ -5769,7 +5769,7 @@ sealed class DatabaseError {
@Serializable
sealed class SQLiteError {
@Serializable @SerialName("errorNotADatabase") object ErrorNotADatabase: SQLiteError()
@Serializable @SerialName("error") class Error(val error: String): SQLiteError()
@Serializable @SerialName("error") class Error(val dbError: String): SQLiteError()
}
@Serializable
+1 -1
View File
@@ -12,7 +12,7 @@ constraints: zip +disable-bzip2 +disable-zstd
source-repository-package
type: git
location: https://github.com/simplex-chat/simplexmq.git
tag: a76e15fd77d68a09bc43820c1cf6bd1c71700100
tag: fc6b9c0e1b197d435b95b7b385f4c4f65f91b632
source-repository-package
type: git
+1 -1
View File
@@ -1,5 +1,5 @@
{
"https://github.com/simplex-chat/simplexmq.git"."a76e15fd77d68a09bc43820c1cf6bd1c71700100" = "07vrjpid03w8f1himhvaaljzspwxxkln814k5kx0yw9hhmabh7zy";
"https://github.com/simplex-chat/simplexmq.git"."fc6b9c0e1b197d435b95b7b385f4c4f65f91b632" = "1ahwnkzkrvw1jlwgqmkay09m90zbdgzf1rzvn9370dy1kz943cgf";
"https://github.com/simplex-chat/hs-socks.git"."a30cc7a79a08d8108316094f8f2f82a0c5e1ac51" = "0yasvnr7g91k76mjkamvzab2kvlb1g5pspjyjn2fr6v83swjhj38";
"https://github.com/simplex-chat/direct-sqlcipher.git"."f814ee68b16a9447fbb467ccc8f29bdd3546bfd9" = "1ql13f4kfwkbaq7nygkxgw84213i0zm7c1a8hwvramayxl38dq5d";
"https://github.com/simplex-chat/sqlcipher-simple.git"."a46bd361a19376c5211f1058908fc0ae6bf42446" = "1z0r78d8f0812kxbgsm735qf6xx8lvaz27k1a0b4a2m0sshpd5gl";
+1 -1
View File
@@ -1204,7 +1204,7 @@ data DatabaseError
| DBErrorOpen {sqliteError :: SQLiteError}
deriving (Show, Exception)
data SQLiteError = SQLiteErrorNotADatabase | SQLiteError String
data SQLiteError = SQLiteErrorNotADatabase | SQLiteError {dbError :: String}
deriving (Show, Exception)
throwDBError :: DatabaseError -> CM ()