mirror of https://github.com/Nheko-Reborn/nheko
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
458 B
21 lines
458 B
7 years ago
|
#pragma once
|
||
|
|
||
|
#include "RoomInfoListItem.h"
|
||
|
|
||
|
#include <QDateTime>
|
||
|
#include <mtx/events/collections.hpp>
|
||
|
|
||
|
namespace utils {
|
||
|
|
||
|
using TimelineEvent = mtx::events::collections::TimelineEvents;
|
||
|
|
||
|
//! Human friendly timestamp representation.
|
||
|
QString
|
||
|
descriptiveTime(const QDateTime &then);
|
||
|
|
||
|
//! Generate a message description from the event to be displayed
|
||
|
//! in the RoomList.
|
||
|
DescInfo
|
||
|
getMessageDescription(const TimelineEvent &event, const QString &localUser);
|
||
|
}
|