Added support for displaying and opening wall posts as attachments in conversations

This commit is contained in:
2019-05-29 09:17:02 -05:00
parent 7d52ed8802
commit 8ec7fbb49e
3 changed files with 14 additions and 2 deletions

View File

@@ -1302,6 +1302,8 @@ class chatBuffer(baseBuffer):
break
if url != "":
webbrowser.open_new_tab(url)
if attachment["type"] == "wall":
pub.sendMessage("open-post", post_object=attachment["wall"], controller_="displayPost")
else:
log.debug("Unhandled attachment: %r" % (attachment,))