ThreadExtension extension

Helper extension on Thread to update the parent message and replies.

on

Methods

deleteReply(Message reply) Thread

Available on Thread, provided by the ThreadExtension extension

Deletes the given reply from the Thread.
markAsReadByUser(User user, DateTime createdAt) Thread

Available on Thread, provided by the ThreadExtension extension

Marks the given thread as read by the given user.
markAsUnreadByUser(User user, DateTime createdAt) Thread

Available on Thread, provided by the ThreadExtension extension

Marks the given thread as unread by the given user.
updateParent(Message parent) Thread

Available on Thread, provided by the ThreadExtension extension

Updates the parent message of a Thread.
upsertReply(Message reply) Thread

Available on Thread, provided by the ThreadExtension extension

Inserts a new reply (or updates and existing one) into the Thread.