Commit f1d21907 authored by Andreas Traczyk's avatar Andreas Traczyk Committed by Kateryna Kostiuk

presence: fixes subscription timing for presence

- depends on https://gerrit-ring.savoirfairelinux.com/#/c/9233/

Change-Id: I8bcfca32826dd6a4dfd1cc8f2722db7c041608ce
Reviewed-by: Kateryna Kostiuk's avatarKateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com>
parent 3b98eb89
......@@ -27,6 +27,7 @@
#import <media/recordingmodel.h>
#import <media/textrecording.h>
#import <QItemSelectionModel>
#import <QDebug>
#import <account.h>
#import <AvailableAccountModel.h>
......@@ -133,6 +134,16 @@ static void ReachabilityCallback(SCNetworkReachabilityRef __unused target, SCNet
- (void) connect
{
//ProfileModel::instance().addCollection<LocalProfileCollection>(LoadOptions::FORCE_ENABLED);
QObject::connect(&AccountModel::instance(),
&AccountModel::registrationChanged,
[=](Account* a, bool registration) {
qDebug() << "registrationChanged:" << a->id() << ":" << registration;
//track buddy for account
AccountModel::instance().subscribeToBuddies(a->id());
});
QObject::connect(&CallModel::instance(),
&CallModel::incomingCall,
[=](Call* call) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment