aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/index.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/index.ts b/src/main/index.ts
index 76c508a..344465f 100644
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@ -102,6 +102,17 @@ function setupIpcHandlers(): void {
return true
})
+ // Get max messages
+ ipcMain.handle('config:get-max-messages', () => {
+ return store.get('maxMessages', 300) // Default to 100 if not set
+ })
+
+ // Set max messages
+ ipcMain.handle('config:set-max-messages', (_, maxMessagesKept: number) => {
+ store.set('maxMessages', maxMessagesKept)
+ return true
+ })
+
// Get all channel nicknames as array
ipcMain.handle('config:get-channel-list', () => {
const nicknames = store.get('channelNicknames')
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage