From 7bd5fefb1734d7524d9bb36f0d4afa4afbfa16b8 Mon Sep 17 00:00:00 2001 From: "phoglund@webrtc.org" Date: Thu, 21 Aug 2014 09:53:28 +0000 Subject: [PATCH] Making sure muc members get recorded. This is an upstream of a change I made; will describe in a separate email thread. Essentially, the members map wasn't getting populated in the callclient example, so it was always empty. Now it will be populated correctly. R=henrike@webrtc.org Review URL: https://webrtc-codereview.appspot.com/13189004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6950 4adac7df-926f-26a2-2b94-8c16560cd09d --- talk/examples/call/callclient.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/talk/examples/call/callclient.cc b/talk/examples/call/callclient.cc index 188f6c4a8..2c8a6bc1d 100644 --- a/talk/examples/call/callclient.cc +++ b/talk/examples/call/callclient.cc @@ -1285,8 +1285,9 @@ void CallClient::OnMucStatusUpdate(const buzz::Jid& jid, return; } - if (!status.available()) { - // Remove them from the room. + if (status.available()) { + muc->members()[status.jid().resource()] = status; + } else { muc->members().erase(status.jid().resource()); } }