diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-07-07 19:32:34 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-08-09 10:18:37 +0900 |
commit | 27ca32a1e5a56e09b9cc1d94224d2831004dcf3d (patch) | |
tree | f2e8d19705a13e39bd9484d13098f323c8d30194 /lib/events/roommessageevent.cpp | |
parent | 7a5b359b8823646ce97cbaf05c251cb04c291466 (diff) | |
download | libquotient-27ca32a1e5a56e09b9cc1d94224d2831004dcf3d.tar.gz libquotient-27ca32a1e5a56e09b9cc1d94224d2831004dcf3d.zip |
Namespace: QMatrixClient -> Quotient (with back comp alias)
Diffstat (limited to 'lib/events/roommessageevent.cpp')
-rw-r--r-- | lib/events/roommessageevent.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/events/roommessageevent.cpp b/lib/events/roommessageevent.cpp index 991931de..09562d65 100644 --- a/lib/events/roommessageevent.cpp +++ b/lib/events/roommessageevent.cpp @@ -25,7 +25,7 @@ #include <QtGui/QImageReader> #include <QtMultimedia/QMediaResource> -using namespace QMatrixClient; +using namespace Quotient; using namespace EventContent; using MsgType = RoomMessageEvent::MsgType; @@ -279,7 +279,7 @@ TextContent::TextContent(const QString& text, const QString& contentType, mimeType = QMimeDatabase().mimeTypeForName("text/html"); } -namespace QMatrixClient { +namespace Quotient { // Overload the default fromJson<> logic that defined in converters.h // as we want template <> @@ -295,7 +295,7 @@ Omittable<RelatesTo> fromJson(const QJsonValue& jv) return RelatesTo { jo.value("rel_type"_ls).toString(), jo.value(EventIdKeyL).toString() }; } -} // namespace QMatrixClient +} // namespace Quotient TextContent::TextContent(const QJsonObject& json) : relatesTo(fromJson<Omittable<RelatesTo>>(json[RelatesToKeyL])) |