fix: thread new ChatOpts/CoreChatOpts fields through bot/test constructors

This commit is contained in:
shum
2026-07-13 07:39:50 +00:00
committed by sh
parent d96af18cca
commit a23e34671f
3 changed files with 10 additions and 3 deletions
@@ -94,5 +94,7 @@ mkChatOpts BroadcastBotOpts {coreOptions, botDisplayName} =
autoAcceptFileSize = 0,
muteNotifications = True,
markRead = False,
createBot = Just CreateBotOpts {botDisplayName, allowFiles = False, clientService = False}
createBot = Just CreateBotOpts {botDisplayName, allowFiles = False, clientService = False},
userDisplayName = Nothing,
userImageFile = Nothing
}
@@ -249,7 +249,9 @@ mkChatOpts DirectoryOpts {coreOptions, serviceName, clientService} =
autoAcceptFileSize = 0,
muteNotifications = True,
markRead = False,
createBot = Just CreateBotOpts {botDisplayName = serviceName, allowFiles = False, clientService}
createBot = Just CreateBotOpts {botDisplayName = serviceName, allowFiles = False, clientService},
userDisplayName = Nothing,
userImageFile = Nothing
}
parseMigrateLog :: ReadM MigrateLog
+4 -1
View File
@@ -121,7 +121,9 @@ testOpts =
autoAcceptFileSize = 0,
muteNotifications = True,
markRead = True,
createBot = Nothing
createBot = Nothing,
userDisplayName = Nothing,
userImageFile = Nothing
}
testCoreOpts :: CoreChatOpts
@@ -155,6 +157,7 @@ testCoreOpts =
deviceName = Nothing,
chatRelay = False,
webPreviewConfig = Nothing,
chatRelayServer = Nothing,
highlyAvailable = False,
yesToUpMigrations = False,
migrationBackupPath = Nothing,