fix: Small stuff

This commit is contained in:
Sorunome 2020-09-21 09:44:13 +02:00 committed by Christian Pauly
parent b2240513c5
commit 9d3f272c2a
3 changed files with 4 additions and 5 deletions

View file

@ -43,8 +43,7 @@ class MessageContent extends StatelessWidget {
case MessageTypes.Emote: case MessageTypes.Emote:
if (Matrix.of(context).renderHtml && if (Matrix.of(context).renderHtml &&
!event.redacted && !event.redacted &&
event.content['format'] == 'org.matrix.custom.html' && event.isRichMessage) {
event.content['formatted_body'] is String) {
String html = event.content['formatted_body']; String html = event.content['formatted_body'];
if (event.messageType == MessageTypes.Emote) { if (event.messageType == MessageTypes.Emote) {
html = '* $html'; html = '* $html';

View file

@ -180,8 +180,8 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
path: "." path: "."
ref: d42979da12ad6749a3c47c67dc4fb0f0f57420b4 ref: "0ff971faa99ca946acf116a51fc31ef7fe87a745"
resolved-ref: d42979da12ad6749a3c47c67dc4fb0f0f57420b4 resolved-ref: "0ff971faa99ca946acf116a51fc31ef7fe87a745"
url: "https://gitlab.com/famedly/famedlysdk.git" url: "https://gitlab.com/famedly/famedlysdk.git"
source: git source: git
version: "0.0.1" version: "0.0.1"

View file

@ -27,7 +27,7 @@ dependencies:
famedlysdk: famedlysdk:
git: git:
url: https://gitlab.com/famedly/famedlysdk.git url: https://gitlab.com/famedly/famedlysdk.git
ref: d42979da12ad6749a3c47c67dc4fb0f0f57420b4 ref: 0ff971faa99ca946acf116a51fc31ef7fe87a745
localstorage: ^3.0.1+4 localstorage: ^3.0.1+4
memoryfilepicker: ^0.1.3 memoryfilepicker: ^0.1.3