diff options
author | Steve Bennetts <steve@lindenlab.com> | 2009-11-18 14:07:35 -0800 |
---|---|---|
committer | Steve Bennetts <steve@lindenlab.com> | 2009-11-18 14:07:35 -0800 |
commit | efb512dc65c43ea73e7b4da3e2c45d276043842e (patch) | |
tree | 3fcf738eb1c46c6c093f85dc7352d93ecbf13e0f /indra/newview/llavataractions.cpp | |
parent | 22aa5eed910bbd1b366789cb96247899c744df75 (diff) |
EXT-2644 - Add "Close Session" option to chicklet context menus
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()) |