diff options
author | trilene <trilene@runbox.com> | 2020-07-24 13:30:12 -0400 |
---|---|---|
committer | trilene <trilene@runbox.com> | 2020-07-24 13:30:12 -0400 |
commit | aec24efbe2a41c17104ea98ad9e35463b16d5d80 (patch) | |
tree | 0211f6786c8dce2618a04789e4f62adef639a7fa /src/timeline/TimelineModel.cpp | |
parent | Cancel sent CallInvite if no response within expiry (diff) | |
download | nheko-aec24efbe2a41c17104ea98ad9e35463b16d5d80.tar.xz |
Specify call type on timeline
Diffstat (limited to 'src/timeline/TimelineModel.cpp')
-rw-r--r-- | src/timeline/TimelineModel.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp index 8d68f24c..e4677f53 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp @@ -282,6 +282,7 @@ TimelineModel::roleNames() const {RoomId, "roomId"}, {RoomName, "roomName"}, {RoomTopic, "roomTopic"}, + {CallType, "callType"}, {Dump, "dump"}, }; } @@ -435,6 +436,8 @@ TimelineModel::data(const QString &id, int role) const return QVariant(QString::fromStdString(room_name(event))); case RoomTopic: return QVariant(QString::fromStdString(room_topic(event))); + case CallType: + return QVariant(QString::fromStdString(call_type(event))); case Dump: { QVariantMap m; auto names = roleNames(); @@ -464,6 +467,7 @@ TimelineModel::data(const QString &id, int role) const m.insert(names[ReplyTo], data(id, static_cast<int>(ReplyTo))); m.insert(names[RoomName], data(id, static_cast<int>(RoomName))); m.insert(names[RoomTopic], data(id, static_cast<int>(RoomTopic))); + m.insert(names[CallType], data(id, static_cast<int>(CallType))); return QVariant(m); } |