ingame/interactwindow/interactwindow.lua:60 -- SCENE_MANAGER:ShowWithFollowup(sceneName, function(allowed)
if allowed then
self:FireCallbacks("Shown")
else
-- If we're trying to bring up the conversation window but we rejected the request, we want to end that conversation
-- However, we don't want to end conversations if we were rejected by an already ongoing conversation
local isNotAlreadyInConversationInteractScene = true
if self.currentInteraction then
for _, interactType in ipairs(self.currentInteraction.interactTypes) do
if interactType == INTERACTION_CONVERSATION then
isNotAlreadyInConversationInteractScene = false
break
end
end
end
if isNotAlreadyInConversationInteractScene then
EndInteraction(INTERACTION_CONVERSATION)
end
end
end)