add groupid, since it is now a screenid not a sessionid

This commit is contained in:
sawka
2023-03-20 19:21:23 -07:00
parent 0ad1d9236a
commit 963bef8425
+5
View File
@@ -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 ""