Class RoomRedactionContent

  • All Implemented Interfaces:
    EventContent

    public class RoomRedactionContent
    extends Object
    implements EventContent
    Events can be redacted by either room or server admins. Redacting an event means that all keys not required by the protocol are stripped off, allowing admins to remove offensive or illegal content that may have been attached to any event. This cannot be undone, allowing server owners to physically delete the offending data. There is also a concept of a moderator hiding a message event, which can be undone, but cannot be applied to state events. The event that has been redacted is specified in the redacts event level key.
    • Field Detail

      • reason

        private String reason
        The reason for the redaction, if any.
    • Constructor Detail

      • RoomRedactionContent

        public RoomRedactionContent()
    • Method Detail

      • getReason

        public String getReason()
      • setReason

        public void setReason​(String reason)