mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-30 17:59:02 -04:00
Merge pull request #2261 from csoler/v0.6-BugFixing_6
Better display of last seen info in groups
This commit is contained in:
commit
42dd13b0e6
9 changed files with 80 additions and 5 deletions
|
@ -695,7 +695,12 @@ void IdDialog::loadCircles(const std::list<RsGroupMetaData>& groupInfo)
|
|||
if(am_I_subscribed)
|
||||
tooltip += tr("subscribed (Receive/forward membership requests from others and invite list).") ;
|
||||
else
|
||||
tooltip += tr("unsubscribed (Only receive invite list).") ;
|
||||
{
|
||||
if(vit->mLastSeen>0)
|
||||
tooltip += tr("unsubscribed (Only receive invite list). Last seen: %1 days ago.").arg( (time(nullptr)-vit->mLastSeen)/86400 );
|
||||
else
|
||||
tooltip += tr("unsubscribed (Only receive invite list).");
|
||||
}
|
||||
|
||||
tooltip += "\n"+tr("Your status: ") ;
|
||||
|
||||
|
|
|
@ -1065,6 +1065,11 @@ void GxsForumThreadWidget::updateForumDescription(bool success)
|
|||
forum_description += QString("<b>%1: \t</b>%2<br/>").arg(tr("Synchronization"),getDurationString( rsGxsForums->getSyncPeriod(group.mMeta.mGroupId)/86400 )) ;
|
||||
forum_description += QString("<b>%1: \t</b>%2<br/>").arg(tr("Storage"),getDurationString( rsGxsForums->getStoragePeriod(group.mMeta.mGroupId)/86400));
|
||||
}
|
||||
else
|
||||
{
|
||||
if(group.mMeta.mLastSeen > 0)
|
||||
forum_description += QString("<b>%1: \t</b>%2 days ago<br/>").arg(tr("Last seen at friends:"),QString::number((time(nullptr) - group.mMeta.mLastSeen)/86400));
|
||||
}
|
||||
|
||||
QString distrib_string = tr("[unknown]");
|
||||
switch(static_cast<RsGxsCircleType>(group.mMeta.mCircleType))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue