inherit
96289
0
May 17, 2020 9:37:00 GMT -8
elli
1,822
January 2007
ebbymac
|
Post by elli on Feb 17, 2020 13:32:44 GMT -8
In my GIPHY Button plugin, I'm using the following to check that Quick Reply exists on a given page: pb.data('quick_reply') I've noticed that this returns 1 when Quick Reply exists and null when it doesn't. As expected, on a thread with Quick Reply, 1 is returned. However, in a conversation that also has Quick Reply, null is returned. I would expect a conversation to return 1 the same as a thread, but it doesn't. Is there a step I'm missing? Or is there a better way to check that Quick Reply exists?
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Feb 17, 2020 15:51:12 GMT -8
Yes, unfortunately that is not written out to the conversation page. Am not sure if there is a quick check you can do now, I haven't looked at the conversation page in a long time. My method was to check the route and an element check. The route is "conversation", but there was also a few others thrown in there that made it really confusing. Not sure if they have been removed, so keep an eye out on that when you test. Looking at Yootil, it seems I was testing for "list_messages " as well, no idea if that is still a valid route. if(pb.data("route").name == "conversation" && $(".form_post_quick_reply").length == 1){
|
|
inherit
96289
0
May 17, 2020 9:37:00 GMT -8
elli
1,822
January 2007
ebbymac
|
Post by elli on Feb 17, 2020 19:04:00 GMT -8
Peter Thank you! I was wondering about routes. I'll give that a try. :)
|
|