From bde71a6cbcce17005c464d3cb77a8d8e5d3a8566 Mon Sep 17 00:00:00 2001
From: Nicolas Werner <nicolas.werner@hotmail.de>
Date: Sat, 2 Nov 2019 21:14:22 +0100
Subject: [PATCH] fixup bad room list translation commit

---
 src/Cache.h | 1 -
 src/Utils.h | 3 ---
 2 files changed, 4 deletions(-)

diff --git a/src/Cache.h b/src/Cache.h
index 0da497939..f5e1cfa08 100644
--- a/src/Cache.h
+++ b/src/Cache.h
@@ -91,7 +91,6 @@ from_json(const json &j, ReadReceiptKey &key)
 struct DescInfo
 {
         QString event_id;
-        QString username;
         QString userid;
         QString body;
         QString timestamp;
diff --git a/src/Utils.h b/src/Utils.h
index 8cb891cc5..007126c32 100644
--- a/src/Utils.h
+++ b/src/Utils.h
@@ -169,9 +169,6 @@ template<class T, class Event>
 DescInfo
 createDescriptionInfo(const Event &event, const QString &localUser, const QString &room_id)
 {
-        using Text  = mtx::events::RoomEvent<mtx::events::msg::Text>;
-        using Emote = mtx::events::RoomEvent<mtx::events::msg::Emote>;
-
         const auto msg    = boost::get<T>(event);
         const auto sender = QString::fromStdString(msg.sender);
 
-- 
GitLab