From a23e34671f9c6c84f53affa75b2de49a1e24822a Mon Sep 17 00:00:00 2001 From: shum Date: Wed, 6 May 2026 14:07:01 +0000 Subject: [PATCH] fix: thread new ChatOpts/CoreChatOpts fields through bot/test constructors --- apps/simplex-broadcast-bot/src/Broadcast/Options.hs | 4 +++- apps/simplex-directory-service/src/Directory/Options.hs | 4 +++- tests/ChatClient.hs | 5 ++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/apps/simplex-broadcast-bot/src/Broadcast/Options.hs b/apps/simplex-broadcast-bot/src/Broadcast/Options.hs index 268e4329cc..893e687d78 100644 --- a/apps/simplex-broadcast-bot/src/Broadcast/Options.hs +++ b/apps/simplex-broadcast-bot/src/Broadcast/Options.hs @@ -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 } diff --git a/apps/simplex-directory-service/src/Directory/Options.hs b/apps/simplex-directory-service/src/Directory/Options.hs index 23115ec7c7..2c94152a1c 100644 --- a/apps/simplex-directory-service/src/Directory/Options.hs +++ b/apps/simplex-directory-service/src/Directory/Options.hs @@ -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 diff --git a/tests/ChatClient.hs b/tests/ChatClient.hs index c803570d99..654d98bb05 100644 --- a/tests/ChatClient.hs +++ b/tests/ChatClient.hs @@ -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,