Fix: prev_content error message
This commit is contained in:
parent
c46f4ba066
commit
35e48f9641
|
@ -105,8 +105,8 @@ class Event extends MatrixEvent {
|
||||||
try {
|
try {
|
||||||
this.prevContent = (prevContent != null && prevContent.isNotEmpty)
|
this.prevContent = (prevContent != null && prevContent.isNotEmpty)
|
||||||
? prevContent
|
? prevContent
|
||||||
: (unsigned != null && unsigned['prev_content'] is Map)
|
: (this.unsigned != null && this.unsigned['prev_content'] is Map)
|
||||||
? unsigned['prev_content']
|
? this.unsigned['prev_content']
|
||||||
: null;
|
: null;
|
||||||
} catch (e, s) {
|
} catch (e, s) {
|
||||||
Logs.error('Event constructor crashed: ${e.toString()}', s);
|
Logs.error('Event constructor crashed: ${e.toString()}', s);
|
||||||
|
|
Loading…
Reference in a new issue