hroppanen
11 years agoAce
Show message when thread is closed
I want to show a message at the end of the message list when "Block new replies" button has been clicked. I have noticed that clicking this button changes message property "read_only" value to true, but is there a way of getting value if the thread is in this kind of closed mode? Or do I have to calculate how many messages there are overall and compare that to closed messages count?
Thread properties only have "readonly/set" and "readonly/clear".
Hi hroppanen
I think it should be okay to look up the main thread ID via rest and inspect the value of read_only for the root message. That should tell you if the replies have been disabled for the thread.
Hope it helps,