mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 21:18:48 +03:00
21 lines
458 B
C
21 lines
458 B
C
|
#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);
|
||
|
}
|