light modification

This commit is contained in:
mr 2025-01-23 08:48:22 +01:00
parent 99693d8ec0
commit df04133551

View File

@ -43,6 +43,9 @@ type CollaborativeArea struct {
} }
func (ao *CollaborativeArea) Clear(peerID string) { func (ao *CollaborativeArea) Clear(peerID string) {
if ao.AllowedPeersGroup == nil {
ao.AllowedPeersGroup = map[string][]string{}
}
ao.CreatorID = peerID ao.CreatorID = peerID
if config.GetConfig().Whitelist { if config.GetConfig().Whitelist {
ao.AllowedPeersGroup[peerID] = []string{"*"} ao.AllowedPeersGroup[peerID] = []string{"*"}