diff --git a/notifications/notificationabstract.h b/notifications/notificationabstract.h index 0b287af392b4f5b13eab648c2c0631f30302d740..2d18b15e6b2aa3ec7747e5a991dea3ee312207ed 100755 --- a/notifications/notificationabstract.h +++ b/notifications/notificationabstract.h @@ -44,9 +44,9 @@ class NotificationAbstract : public QObject QString mToken; signals: - void tokenReceived( const QString &pToken ); - void messageReceived( const QString &pServer, const QString &pRid, const QString &pName, const QString &pType ); - void switchChannelByName( const QString &pChannel ); + void tokenReceived( QString pToken ); + void messageReceived( QString pServer, QString pRid, QString pName, QString pType ); + void switchChannelByName( QString &pChannel ); }; diff --git a/rocketchat.cpp b/rocketchat.cpp index f0878658c7d0617ea993e3dbbef44b3254a28a8f..c8f78c757bc10ce11fc39f23f43716d85cb89b98 100755 --- a/rocketchat.cpp +++ b/rocketchat.cpp @@ -291,6 +291,9 @@ void RocketChat::clearWebViewCookies() #if defined(Q_OS_ANDROID) AndroidCookies::clearAllCookies(); #endif +#if defined(Q_OS_IOS) + emit clearAllCookies(); +#endif } bool RocketChat::newServerByDomain( const QString &domain, bool pUnsecure = false ) diff --git a/rocketchat.h b/rocketchat.h index 3804076d662b43a3d7dff183ec0f0b77d7c552be..8f7d024e0d99d8da128dbafe4ed2188156888900 100755 --- a/rocketchat.h +++ b/rocketchat.h @@ -259,6 +259,7 @@ class RocketChat : public QObject void openGallery(); void checkForpendingNotificationIOS(); void registerForPushIOS(); + void clearAllCookies(); }; #endif // ROCKETCHAT_H