mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-16 00:53:58 -05:00
Fix: chatlobby toaster not working
This commit is contained in:
parent
0402e53f15
commit
16859a1d3a
4 changed files with 28 additions and 19 deletions
|
|
@ -22,10 +22,11 @@
|
|||
#include "ChatLobbyToaster.h"
|
||||
#include "gui/chat/ChatDialog.h"
|
||||
#include "util/HandleRichText.h"
|
||||
#include <retroshare/rsidentity.h>
|
||||
|
||||
#include <retroshare/rsmsgs.h>
|
||||
|
||||
ChatLobbyToaster::ChatLobbyToaster(const ChatLobbyId &lobby_id, const QString &name, const QString &message):
|
||||
ChatLobbyToaster::ChatLobbyToaster(const ChatLobbyId &lobby_id, const RsGxsId &sender_id, const QString &message):
|
||||
QWidget(NULL), mLobbyId(lobby_id)
|
||||
{
|
||||
/* Invoke the Qt Designer generated object setup routine */
|
||||
|
|
@ -39,7 +40,14 @@ ChatLobbyToaster::ChatLobbyToaster(const ChatLobbyId &lobby_id, const QString &n
|
|||
ui.avatarWidget->setFrameType(AvatarWidget::NORMAL_FRAME);
|
||||
ui.avatarWidget->setDefaultAvatar(":images/chat_64.png");
|
||||
|
||||
QString lobbyName = RsHtml::plainText(name);
|
||||
/* Get sender info */
|
||||
RsIdentityDetails idd;
|
||||
if(!rsIdentity->getIdDetails(sender_id, idd))
|
||||
return;
|
||||
|
||||
ui.avatarWidget->setId(ChatId(sender_id));
|
||||
|
||||
QString lobbyName = RsHtml::plainText(idd.mNickname);
|
||||
|
||||
ChatLobbyInfo clinfo ;
|
||||
if(rsMsgs->getChatLobbyInfo(mLobbyId,clinfo))
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ class ChatLobbyToaster : public QWidget
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
ChatLobbyToaster(const ChatLobbyId &lobby_id, const QString &name, const QString &message);
|
||||
ChatLobbyToaster(const ChatLobbyId &lobby_id, const RsGxsId &sender_id, const QString &message);
|
||||
|
||||
private slots:
|
||||
void chatButtonSlot();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue