/***************************************************************************
- * Copyright (C) 2005-08 by the Quassel Project *
+ * Copyright (C) 2005-09 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
#include "ircchannel.h"
CoreBufferSyncer::CoreBufferSyncer(CoreSession *parent)
- : BufferSyncer(parent),
+ : BufferSyncer(Core::bufferLastSeenMsgIds(parent->user()), parent),
_coreSession(parent)
{
}
void CoreBufferSyncer::mergeBuffersPermanently(BufferId bufferId1, BufferId bufferId2) {
BufferInfo bufferInfo1 = Core::getBufferInfo(_coreSession->user(), bufferId1);
BufferInfo bufferInfo2 = Core::getBufferInfo(_coreSession->user(), bufferId2);
- qDebug() << Q_FUNC_INFO << bufferInfo1 << bufferInfo2;
if(!bufferInfo1.isValid() || !bufferInfo2.isValid()) {
qWarning() << "CoreBufferSyncer::mergeBufferPermanently(): invalid BufferIds:" << bufferId1 << bufferId2 << "for User:" << _coreSession->user();
return;
}
if(Core::mergeBuffersPermanently(_coreSession->user(), bufferId1, bufferId2)) {
- qDebug () << "HUUUUP";
BufferSyncer::mergeBuffersPermanently(bufferId1, bufferId2);
}
}