Skip to content

Link preview messageeventmodel parameters

James Graham requested to merge work/nvrwhere/linkpreviewer_model into master

This move the finding of links and the creation of a linkpreviewer into c++.

  • The links are now extracted from the text in texthandler
  • The messageeventmodel now creates and stores linkpreviewers for events that have links in the current room.

Two new model roles have been created to let a text delegate know when the link preview should be shown (showLinkPreview) and pass the link previewer (linkPreviewer). Empty link previewer are returned where link don't exist so the qml doesn't have to have checks for whether the parameters are undefined.

Edited by James Graham

Merge request reports

Loading