diff options
author | Steve Bennetts <steve@lindenlab.com> | 2009-11-18 14:30:05 -0800 |
---|---|---|
committer | Steve Bennetts <steve@lindenlab.com> | 2009-11-18 14:30:05 -0800 |
commit | 5fce305bc6fe2af96a1ad6e389d79b2bca43e37c (patch) | |
tree | b3e24d1fc48749ef66f305881b8c4a930b776b2a /indra/newview/llavataractions.cpp | |
parent | de23a4d92c02504fd512b2fdb151406d31ae03c0 (diff) | |
parent | 3716d1bcf863f2b4dcb8c8de594a1aa95332ca9b (diff) |
merge
Diffstat (limited to 'indra/newview/llavataractions.cpp')
-rw-r--r-- | indra/newview/llavataractions.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/llavataractions.cpp b/indra/newview/llavataractions.cpp index ee4a9df15f..0844cca766 100644 --- a/indra/newview/llavataractions.cpp +++ b/indra/newview/llavataractions.cpp @@ -190,6 +190,19 @@ void LLAvatarActions::startIM(const LLUUID& id) } // static +void LLAvatarActions::endIM(const LLUUID& id) +{ + if (id.isNull()) + return; + + LLUUID session_id = gIMMgr->computeSessionID(IM_NOTHING_SPECIAL, id); + if (session_id != LLUUID::null) + { + gIMMgr->leaveSession(session_id); + } +} + +// static void LLAvatarActions::startCall(const LLUUID& id) { if (id.isNull()) |