fix for showRichText function
This commit is contained in:
parent
ab33ec2b3f
commit
087c0d05e9
1 changed files with 5 additions and 4 deletions
|
|
@ -88,15 +88,16 @@ class PangeaMessageEvent {
|
|||
if (!_isValidPangeaMessageEvent) {
|
||||
return false;
|
||||
}
|
||||
// if (URLFinder.getMatches(event.body).isNotEmpty) {
|
||||
// return false;
|
||||
// }
|
||||
|
||||
if ([EventStatus.error, EventStatus.sending].contains(_event.status)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (isOverlay) return true;
|
||||
if (ownMessage && !selected && !highlighted) {
|
||||
|
||||
// if ownMessage, don't show rich text if not selected or highlighted
|
||||
// and don't show is the message is not an overlay
|
||||
if (ownMessage && ((!selected && !highlighted) || !isOverlay)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue