fix for showRichText function

This commit is contained in:
ggurdin 2024-05-22 13:04:23 -04:00
parent ab33ec2b3f
commit 087c0d05e9

View file

@ -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;