forked from blue/squawk
fix for presences in MUCs, fix for memory limit in message history, fix for message line resizing, started working on messages
This commit is contained in:
parent
139c0de0e3
commit
0574d6f72b
15 changed files with 332 additions and 95 deletions
|
@ -71,7 +71,7 @@ void Core::RosterItem::setName(const QString& n)
|
|||
|
||||
void Core::RosterItem::addMessageToArchive(const Shared::Message& msg)
|
||||
{
|
||||
if (msg.getId().size() > 0 && msg.getBody().size() > 0) {
|
||||
if (msg.storable()) {
|
||||
hisoryCache.push_back(msg);
|
||||
}
|
||||
}
|
||||
|
@ -184,7 +184,7 @@ void Core::RosterItem::appendMessageToArchive(const Shared::Message& msg)
|
|||
{
|
||||
const QString& id = msg.getId();
|
||||
if (id.size() > 0) {
|
||||
if (msg.getBody().size() > 0) {
|
||||
if (msg.storable()) {
|
||||
switch (archiveState) {
|
||||
case empty:
|
||||
if (archive->addElement(msg)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue