summary refs log tree commit diff
path: root/src/popups/UserMentions.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-05-30 16:37:51 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-05-30 16:38:11 +0200
commit9eddcfc42f3cd4e513f72d9b7fef9a98b43a378d (patch)
tree565f982881fdefdf8b2f3a0cfea14b4064863a99 /src/popups/UserMentions.cpp
parentTranslated using Weblate (Italian) (diff)
downloadnheko-9eddcfc42f3cd4e513f72d9b7fef9a98b43a378d.tar.xz
Remove some redundant functions
Diffstat (limited to 'src/popups/UserMentions.cpp')
-rw-r--r--src/popups/UserMentions.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/popups/UserMentions.cpp b/src/popups/UserMentions.cpp
index 2e70dbd3..23a679f1 100644
--- a/src/popups/UserMentions.cpp
+++ b/src/popups/UserMentions.cpp
@@ -8,9 +8,9 @@
 
 #include "Cache.h"
 #include "ChatPage.h"
+#include "EventAccessors.h"
 #include "Logging.h"
 #include "UserMentions.h"
-//#include "timeline/TimelineItem.h"
 
 using namespace popups;
 
@@ -75,12 +75,15 @@ UserMentions::initializeMentions(const QMap<QString, mtx::responses::Notificatio
 
         for (const auto &item : notifs) {
                 for (const auto &notif : item.notifications) {
-                        const auto event_id = QString::fromStdString(utils::event_id(notif.event));
+                        const auto event_id =
+                          QString::fromStdString(mtx::accessors::event_id(notif.event));
 
                         try {
                                 const auto room_id = QString::fromStdString(notif.room_id);
-                                const auto user_id = utils::event_sender(notif.event);
-                                const auto body    = utils::event_body(notif.event);
+                                const auto user_id =
+                                  QString::fromStdString(mtx::accessors::sender(notif.event));
+                                const auto body =
+                                  QString::fromStdString(mtx::accessors::body(notif.event));
 
                                 pushItem(event_id,
                                          user_id,