offline modudle v2 do flag offline ims

This commit is contained in:
UbitUmarov
2022-01-29 00:02:20 +00:00
parent 1c84dee495
commit ca86e47ec3
2 changed files with 5 additions and 2 deletions

View File

@@ -672,7 +672,7 @@ namespace OpenSim.Groups
serviceLocation = group.ServiceLocation;
name = group.GroupName;
bool isLocal = (group.ServiceLocation == string.Empty);
bool isLocal = (group.ServiceLocation.Length == 0);
//m_log.DebugFormat("[XXX]: IsLocal? {0}", isLocal);
return isLocal;
}

View File

@@ -185,9 +185,12 @@ namespace OpenSim.OfflineIM
// Needed for proper state management for stored group
// invitations
//
Scene s = FindScene(client.AgentId);
Scene s = client.Scene as Scene;
if (s != null)
{
im.offline = 1;
s.EventManager.TriggerIncomingInstantMessage(im);
}
}
}
}