Any way to change the Spark default location for chat history?

Hello.

I work for a company that uses Spark 2.6.3 for internal instant messaging. My boss asked me to find some information on changing the location of the chat history for users.

Currently, the default chat history location is in the roaming %appdata% folder. Is there any possible way to change the default location of the chat history?

Thank you

There is no setting to change that. So, your only option is to modify the source and create your own version of Spark. You can also provide a patch for this here and if it works correctly it might be incorporated into future versions of Spark.

Is there any way you could tell me the name of the source file so I can begin my research?

Thank you

89 Spark/ConversationHistoryPlugin.java at master · igniterealtime/Spark · GitHub

93 Spark/Spark.java at master · igniterealtime/Spark · GitHub

You can probably use File Transfer settings as an example.

38 Spark/Downloads.java at master · igniterealtime/Spark · GitHub

370 Spark/LocalPreferences.java at master · igniterealtime/Spark · GitHub

66 Spark/FileTransferPreferencePanel.java at master · igniterealtime/Spark · GitHub

Thank you for your help.

I will start working on a solution and if it works I will post it here.