mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-16 00:53:58 -05:00
fixed merge
This commit is contained in:
commit
296b612965
3 changed files with 15 additions and 17 deletions
|
|
@ -242,8 +242,6 @@ void FriendsDialog::chatMessageReceived(const ChatMessage &msg)
|
||||||
if(!msg.chat_id.isBroadcast())
|
if(!msg.chat_id.isBroadcast())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(ui.chatWidget->isActive())
|
|
||||||
{
|
|
||||||
QDateTime sendTime = DateTime::DateTimeFromTime_t(msg.sendTime);
|
QDateTime sendTime = DateTime::DateTimeFromTime_t(msg.sendTime);
|
||||||
QDateTime recvTime = DateTime::DateTimeFromTime_t(msg.recvTime);
|
QDateTime recvTime = DateTime::DateTimeFromTime_t(msg.recvTime);
|
||||||
QString message = QString::fromUtf8(msg.msg.c_str());
|
QString message = QString::fromUtf8(msg.msg.c_str());
|
||||||
|
|
@ -258,7 +256,6 @@ void FriendsDialog::chatMessageReceived(const ChatMessage &msg)
|
||||||
QMetaObject::invokeMethod(this, "clearChatNotify", Qt::QueuedConnection);
|
QMetaObject::invokeMethod(this, "clearChatNotify", Qt::QueuedConnection);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void FriendsDialog::chatStatusReceived(const ChatId &chat_id, const QString &status_string)
|
void FriendsDialog::chatStatusReceived(const ChatId &chat_id, const QString &status_string)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -240,6 +240,7 @@ void NewsFeed::handlePostedEvent(std::shared_ptr<const RsEvent> event)
|
||||||
|
|
||||||
switch(pe->mPostedEventCode)
|
switch(pe->mPostedEventCode)
|
||||||
{
|
{
|
||||||
|
case RsPostedEventCode::UPDATED_POSTED_GROUP:
|
||||||
case RsPostedEventCode::NEW_POSTED_GROUP:
|
case RsPostedEventCode::NEW_POSTED_GROUP:
|
||||||
addFeedItem( new PostedGroupItem(this, NEWSFEED_POSTEDNEWLIST, pe->mPostedGroupId, false, true));
|
addFeedItem( new PostedGroupItem(this, NEWSFEED_POSTEDNEWLIST, pe->mPostedGroupId, false, true));
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue