Mantis 9199: Add new (to be) hg friends to GridUser table

Now after confirming friendship on the homegrid, immediately instant
messages can be exchanged, without the foreign friend ever having to
have visited our grid before.
This commit is contained in:
lickx
2025-12-30 14:01:48 +01:00
parent 9a0de63ae7
commit 624775f5f4
2 changed files with 9 additions and 0 deletions

View File

@@ -104,6 +104,11 @@ namespace OpenSim.Services.HypergridService
throw new Exception("No PresenceService in " + m_ConfigName);
m_PresenceService = ServerUtils.LoadPlugin<IPresenceService>(theService, args);
theService = serverConfig.GetString("GridUserService", string.Empty);
if (theService.Length == 0)
throw new Exception("No GridUserService in " + m_ConfigName);
m_GridUserService = ServerUtils.LoadPlugin<IGridUserService>(theService, args);
m_FriendsSimConnector = new FriendsSimConnector();
m_log.DebugFormat("[HGFRIENDS SERVICE]: Starting...");
@@ -133,6 +138,9 @@ namespace OpenSim.Services.HypergridService
m_log.DebugFormat("[HGFRIENDS SERVICE]: New friendship {0} {1} ({2})", friend.PrincipalID, friend.Friend, verified);
// Mantis 9199: Make sure the new HG friend is in the GridUser table
m_GridUserService?.LoggedIn(friendID.ToString()+";"+url+";"+first+" "+last);
// Does the friendship already exist?
FriendInfo[] finfos = m_FriendsService.GetFriends(friend.PrincipalID);
foreach (FriendInfo finfo in finfos)

View File

@@ -841,6 +841,7 @@
UserAccountService = "OpenSim.Services.UserAccountService.dll:UserAccountService"
GridService = "OpenSim.Services.GridService.dll:GridService"
PresenceService = "OpenSim.Services.PresenceService.dll:PresenceService"
GridUserService = "OpenSim.Services.UserAccountService.dll:GridUserService"
[HGInstantMessageService]