~ci-train-bot/history-service/history-service-ubuntu-zesty-2629

« back to all changes in this revision

Viewing changes to tests/common/mock/callchannel.cpp

  • Committer: Bileto Bot
  • Author(s): Gustavo Pichorim Boiko
  • Date: 2016-11-30 15:13:58 UTC
  • mfrom: (230.2.23 staging)
  • Revision ID: ci-train-bot@canonical.com-20161130151358-jy3mqj0ir0b6ncxe
Improve group chat support.

Approved by: Roberto Mier Escandón , Tiago Salem Herrmann

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
            reason.reason = Tp::CallStateChangeReasonNoAnswer;
195
195
        }
196
196
        mCallChannel->setCallState(Tp::CallStateEnded, 0, reason, stateDetails);
197
 
        mBaseChannel->close();
 
197
        // leave the channel opened for a bit longer so that the call state gets propagated correctly.
 
198
        QTimer::singleShot(10, mBaseChannel.data(), &Tp::BaseChannel::close);
198
199
    } else if (state == "active") {
199
200
        qDebug() << "active";
200
201
        mHoldIface->setHoldState(Tp::LocalHoldStateUnheld, Tp::LocalHoldStateReasonNone);