aboutsummaryrefslogtreecommitdiff
path: root/events
diff options
context:
space:
mode:
Diffstat (limited to 'events')
-rw-r--r--events/roommessageevent.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/events/roommessageevent.cpp b/events/roommessageevent.cpp
index 34315363..f5dcb7d0 100644
--- a/events/roommessageevent.cpp
+++ b/events/roommessageevent.cpp
@@ -155,9 +155,10 @@ TextContent::TextContent(const QJsonObject& json)
mimeType = db.mimeTypeForName("text/html");
body = json["formatted_body"].toString();
} else {
- // Best-guessing from the content
+ // Falling back to plain text, as there's no standard way to describe
+ // rich text in messages.
body = json["body"].toString();
- mimeType = db.mimeTypeForData(body.toUtf8());
+ mimeType = db.mimeTypeForName("text/plain");
}
}