diff --git a/api/meteorddp.cpp b/api/meteorddp.cpp index eb6668fa01fcca512683b51fb44ea418df65ae4c..56c8f7ecdae1e5f0c50e22750cacd0dca31e75f9 100755 --- a/api/meteorddp.cpp +++ b/api/meteorddp.cpp @@ -48,6 +48,10 @@ void MeteorDDP::init( const QString &pUri ) connect( mWsClient, &Websocket::connected, this, &MeteorDDP::onConnected, Qt::UniqueConnection ); connect( mWsClient, &Websocket::closed, this, &MeteorDDP::ddpDisconnected ); connect( this, &MeteorDDP::sendMessageSignal, this, &MeteorDDP::sendJson, Qt::UniqueConnection ); + connect( mWsClient, &Websocket::error, this, [ = ]( QString error ) { + qDebug() << "test"; + qDebug() << error; + } ); mWsClient->open( wsUri ); QDateTime now = QDateTime::currentDateTime(); uint currentTime = now.toTime_t(); diff --git a/rocketchatserver.cpp b/rocketchatserver.cpp index f1d50638df6ea734b9ce1c31c5c31cfb8bbedb38..2372d8a6f6f86659d91b5769544995cef37fe9a5 100755 --- a/rocketchatserver.cpp +++ b/rocketchatserver.cpp @@ -1656,7 +1656,7 @@ void RocketChatServerData::getCustomEmojis() std::function<void ( QList<QSharedPointer<Emoji>> )> success = [ = ]( QList<QSharedPointer<Emoji>> pEmojiList ) { QVariantList variantList; - if ( variantList.size() ) { + if ( pEmojiList.size() ) { mStorage->transaction(); for ( const auto &emoji : pEmojiList ) {