Skip to content

Commit b1c61cd

Browse files
authored
Merge pull request #808 from alexhoshina/config/change-default-dm-scope-to-per-channel-peer
config: change default dm_scope to per-channel-peer
2 parents f3c1162 + 21654f1 commit b1c61cd

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

pkg/config/config_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,3 +413,12 @@ func TestLoadConfig_WebToolsProxy(t *testing.T) {
413413
t.Fatalf("Tools.Web.Proxy = %q, want %q", cfg.Tools.Web.Proxy, "http://127.0.0.1:7890")
414414
}
415415
}
416+
417+
// TestDefaultConfig_DMScope verifies the default dm_scope value
418+
func TestDefaultConfig_DMScope(t *testing.T) {
419+
cfg := DefaultConfig()
420+
421+
if cfg.Session.DMScope != "per-channel-peer" {
422+
t.Errorf("Session.DMScope = %q, want 'per-channel-peer'", cfg.Session.DMScope)
423+
}
424+
}

pkg/config/defaults.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func DefaultConfig() *Config {
2121
},
2222
Bindings: []AgentBinding{},
2323
Session: SessionConfig{
24-
DMScope: "main",
24+
DMScope: "per-channel-peer",
2525
},
2626
Channels: ChannelsConfig{
2727
WhatsApp: WhatsAppConfig{

0 commit comments

Comments
 (0)