From 963bef842596bfc1b7322530bf993f6525a89c39 Mon Sep 17 00:00:00 2001 From: sawka Date: Mon, 20 Mar 2023 19:21:23 -0700 Subject: [PATCH] add groupid, since it is now a screenid not a sessionid --- pkg/base/base.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/base/base.go b/pkg/base/base.go index fe103bef..6d9b82aa 100644 --- a/pkg/base/base.go +++ b/pkg/base/base.go @@ -87,7 +87,12 @@ func SetEnableDebugLog(enable bool) { DebugLogEnabled = enable } +// deprecated (use GetGroupId instead) func (ckey CommandKey) GetSessionId() string { + return ckey.GetGroupId() +} + +func (ckey CommandKey) GetGroupId() string { slashIdx := strings.Index(string(ckey), "/") if slashIdx == -1 { return ""