I’m assuming nothing was entered in the composer? That’s intended actually. It’s the same as the normal Discourse compose. Try clicking on the arrow on the far right of the composer on meta.discourse.org when you haven’t written anything. If you enter text it will minimize rather than disappear.
edit: But yeah, that’s something I did consider changing from the normal Discourse compose experience. Decided not to for now.
Are you also using my Topic List Previews plugin by any chance? This happens if you use both of these together at the moment. I will be fixing this, so you can use both together, soon.
No, quick messages is not a default plugin (in the sense that is comes with Discourse), you will have to remove it from your plugins directory/app.yml and then perform a rebuild to remove it.
@Rodelio_Lagahit@Roxelle Ok this issue should be fixed now. You can use Quick Messages and Topic List Previews together safely now.
What was happening was that both Quick Messages and Topic List Previews were overriding the excerpt and include_excerpt methods used in the Listable Topic (or Topic List Item) serializer. So I just moved Quick Messages over to a new method message_excerpt so the two would not conflict.
def message_excerpt
if object.archetype == Archetype.private_message
cooked = Post.where(topic_id: object.id, post_number: object.highest_post_number).pluck('cooked')
excerpt = PrettyText.excerpt(cooked[0], 200, keep_emoji_images: true)
excerpt.gsub!(/(\[image\])/, "<i class='fa fa-picture-o'></i>") if excerpt
excerpt
else
return false
end
end
def include_message_excerpt?
!!message_excerpt
end
Btw, notice that, like in Topic List Previews, I’m stripping out the [image] text which acts as a placeholder for an image in a excerpt.
excerpt.gsub!(/(\[image\])/, "<i class='fa fa-picture-o'></i>") if excerpt
This was originally a request for Topic List Previews, and I also think that having ‘[image]’ placeholders in excerpts looks a little…unpolished. I’m experimenting here with putting the Font Awesome icon fa-picture-o in its place so that there is still a placeholder for images in excerpts. If message only contains an image some kind of placeholder is necessary, otherwise the excerpt will show up blank. Any feedback or ideas on that are welcome.