summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelpeople.cpp
diff options
context:
space:
mode:
authorGilbert Gonzales <gilbert@lindenlab.com>2013-04-16 22:36:32 -0700
committerGilbert Gonzales <gilbert@lindenlab.com>2013-04-16 22:36:32 -0700
commit0eb2248f55c835e51705c4dc026e177f3930c5db (patch)
tree46808aeaa044c8510b71d2194a30d48422b5ede1 /indra/newview/llpanelpeople.cpp
parent9d615bbb444b8d7f61bf1c81e165ec9fa2eb4d8c (diff)
made a separate button to add test users to the folder view list. Also when receiving facebook friends both the avatarlist and folderview will be populated.
Diffstat (limited to 'indra/newview/llpanelpeople.cpp')
-rw-r--r--indra/newview/llpanelpeople.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/indra/newview/llpanelpeople.cpp b/indra/newview/llpanelpeople.cpp
index 94b60ca2d6..34d565bbaa 100644
--- a/indra/newview/llpanelpeople.cpp
+++ b/indra/newview/llpanelpeople.cpp
@@ -567,7 +567,7 @@ LLPanelPeople::LLPanelPeople()
mCommitCallbackRegistrar.add("People.requestFBC", boost::bind(&LLPanelPeople::onFacebookAppRequestClicked, this));
mCommitCallbackRegistrar.add("People.sendFBC", boost::bind(&LLPanelPeople::onFacebookAppSendClicked, this));
mCommitCallbackRegistrar.add("People.testaddFBC", boost::bind(&LLPanelPeople::onFacebookTestAddClicked, this));
-
+ mCommitCallbackRegistrar.add("People.testaddFBCFolderView", boost::bind(&LLPanelPeople::addTestParticipant, this));
mCommitCallbackRegistrar.add("People.AddFriend", boost::bind(&LLPanelPeople::onAddFriendButtonClicked, this));
mCommitCallbackRegistrar.add("People.AddFriendWizard", boost::bind(&LLPanelPeople::onAddFriendWizButtonClicked, this));
@@ -1670,9 +1670,6 @@ bool LLPanelPeople::onConversationModelEvent(const LLSD& event)
LLConversationViewParticipant * participant_view = createConversationViewParticipant(participant_model);
participant_view->addToFolder(session_view);
}
-
-
- llinfos << "adding!!!!!!" << llendl;
}
return false;
@@ -1717,7 +1714,15 @@ void LLPanelPeople::showFacebookFriends(const LLSD& friends)
std::string name = i->second["name"].asString();
LLUUID agent_id = i->second.has("agent_id") ? i->second["agent_id"].asUUID() : LLUUID(NULL);
+ //add to avatar list
mFacebookFriends->addNewItem(agent_id, name, false);
+
+ //Add to folder view
+ LLConversationItemSession * session_model = dynamic_cast<LLConversationItemSession *>(mConversationsItems[LLUUID(NULL)]);
+ if(session_model)
+ {
+ addParticipantToModel(session_model, agent_id, name);
+ }
}
}