Merge pull request #1275 from sehraf/pr_fix-IDdialog-chat-link

fix Qt 5.11 and id dialog chat link
This commit is contained in:
csoler 2018-05-26 11:09:41 +02:00 committed by GitHub
commit 65beb2cf2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 1 deletions

View File

@ -1994,7 +1994,8 @@ QString IdDialog::createUsageString(const RsIdentityUsage& u) const
}
case RsIdentityUsage::CHAT_LOBBY_MSG_VALIDATION: // Chat lobby msgs are signed, so each time one comes, or a chat lobby event comes, a signature verificaiton happens.
{
RetroShareLink l = RetroShareLink::createChatRoom(ChatId(ChatLobbyId(u.mAdditionalId)),QString::number(u.mAdditionalId));
ChatId id = ChatId(ChatLobbyId(u.mAdditionalId));
RetroShareLink l = RetroShareLink::createChatRoom(id, QString::fromStdString(id.toStdString()));
return tr("Message in chat room %1").arg(l.toHtml()) ;
}
case RsIdentityUsage::GLOBAL_ROUTER_SIGNATURE_CHECK: // Global router message validation

View File

@ -22,6 +22,7 @@
*/
#include <QDateTime>
#include <QStyle>
#include "rshare.h"
#include "PostedItem.h"

View File

@ -20,6 +20,8 @@
* Boston, MA 02110-1301, USA.
****************************************************************/
#include <QTabBar>
#include "ChatTabWidget.h"
#include "ui_ChatTabWidget.h"
#include "ChatDialog.h"

View File

@ -23,6 +23,7 @@
#include <QTimer>
#include <QFileInfo>
#include <QStyle>
#include "rshare.h"
#include "GxsChannelPostItem.h"

View File

@ -23,6 +23,7 @@
#include <QTimer>
#include <QFileInfo>
#include <QStyle>
#include "rshare.h"
#include "GxsForumMsgItem.h"