Always linkify <img> tags, no matter the src

This commit is contained in:
miruka 2019-07-04 23:21:27 -04:00
parent dbcfad1c50
commit 78663df09e
2 changed files with 2 additions and 4 deletions

View File

@ -18,9 +18,7 @@ OLD
- Bug fixes
- 100% CPU usage when hitting top edge to trigger messages loading
- Sending `![A picture](https://picsum.photos/256/256)` → not clickable?
- `MessageDelegate.qml:63: TypeError: 'reloadPreviousItem' not a function`
- RoomEventsList scrolling when resizing the window
- UI
- Invite to room
@ -70,6 +68,7 @@ OLD
- See `Qt.callLater()` potential usages
- Banner name color instead of bold
- Animate RoomEventDelegate DayBreak apparition
- Room subtitle: show things like "*Image*" instead of blank, etc
- Missing nio support
- MatrixRoom invited members list

View File

@ -131,8 +131,7 @@ class HtmlFilter:
width = el.attrib.get("width", "256")
height = el.attrib.get("height", "256")
if el.getparent().tag == "a" or el.tag != "img" or \
not self._is_image_path(link):
if el.getparent().tag == "a" or el.tag != "img":
return el
el.tag = "a"