fix: prev content error log in web
This commit is contained in:
		
							parent
							
								
									e6d96ad8ed
								
							
						
					
					
						commit
						8a0cc70cfe
					
				|  | @ -105,8 +105,10 @@ class Event extends MatrixEvent { | ||||||
|     try { |     try { | ||||||
|       this.prevContent = (prevContent != null && prevContent.isNotEmpty) |       this.prevContent = (prevContent != null && prevContent.isNotEmpty) | ||||||
|           ? prevContent |           ? prevContent | ||||||
|           : (this.unsigned != null && this.unsigned['prev_content'] is Map) |           : (unsigned != null && | ||||||
|               ? this.unsigned['prev_content'] |                   unsigned.containsKey('prev_content') && | ||||||
|  |                   unsigned['prev_content'] is Map) | ||||||
|  |               ? 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 New Issue