Add setting to allow legacy UDP offline message fetch till LL fixes the cap.

This commit is contained in:
Router Gray
2020-05-19 16:46:52 -05:00
parent f941bc4334
commit 24f5457203
2 changed files with 13 additions and 0 deletions

View File

@@ -3,6 +3,17 @@
<map>
<!-- Ascent-Specific Settings -->
<key>RGUseLegacyOfflines</key>
<map>
<key>Comment</key>
<string>Use legacy UDP offline messages retrieval, to avoid missing attachments server bug. Will be removed when LL fixes the cap.</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<integer>1</integer>
</map>
<key>SingularityBoldGroupModerator</key>
<map>
<key>Comment</key>

View File

@@ -29,6 +29,7 @@
#include "llimprocessing.h"
#include "hippofloaterxml.h"
#include "hippogridmanager.h"
#include "llagent.h"
#include "llagentui.h"
#include "llavataractions.h"
@@ -1877,6 +1878,7 @@ void LLIMProcessing::requestOfflineMessages()
// to build a correct name. Likewise, inventory offers from
// muted avatars require the mute list to properly mute.
if (cap_url.empty()
|| (gHippoGridManager->getConnectedGrid()->isSecondLife() && gSavedSettings.getBOOL("RGUseLegacyOfflines"))
|| gAgent.getRegionCapability("AcceptFriendship").empty()
|| gAgent.getRegionCapability("AcceptGroupInvite").empty())
{