Fix: prev_content error message

This commit is contained in:
Christian Pauly 2020-08-19 11:02:00 +02:00
parent c46f4ba066
commit 35e48f9641
1 changed files with 2 additions and 2 deletions

View File

@ -105,8 +105,8 @@ class Event extends MatrixEvent {
try {
this.prevContent = (prevContent != null && prevContent.isNotEmpty)
? prevContent
: (unsigned != null && unsigned['prev_content'] is Map)
? unsigned['prev_content']
: (this.unsigned != null && this.unsigned['prev_content'] is Map)
? this.unsigned['prev_content']
: null;
} catch (e, s) {
Logs.error('Event constructor crashed: ${e.toString()}', s);