forked from blue/squawk
joining groups on opening them, leaving on closing
This commit is contained in:
parent
023494de0b
commit
a51907b810
14 changed files with 84 additions and 16 deletions
|
@ -19,12 +19,11 @@
|
|||
#include "room.h"
|
||||
|
||||
Room::Room(Models::Room* p_room, QWidget* parent):
|
||||
Conversation(p_room->getAccountJid(), p_room->getAccountResource(), p_room->getJid(), "", p_room->getAccountName(), parent),
|
||||
Conversation(true, p_room->getAccountJid(), p_room->getAccountResource(), p_room->getJid(), "", p_room->getAccountName(), parent),
|
||||
room(p_room)
|
||||
{
|
||||
setName(p_room->getName());
|
||||
line->setMyName(room->getNick());
|
||||
line->setRoom(true);
|
||||
}
|
||||
|
||||
Room::~Room()
|
||||
|
@ -44,3 +43,8 @@ void Room::handleSendMessage(const QString& text)
|
|||
msg.setCurrentTime();
|
||||
emit sendMessage(msg);
|
||||
}
|
||||
|
||||
bool Room::autoJoined() const
|
||||
{
|
||||
return room->getAutoJoin();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue