Skip to content

Commit 1e239cd

Browse files
authored
feat: add message_timestamp option to MarkUnread (#211)
1 parent 317265b commit 1e239cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stream_chat/base/channel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,11 @@ def mark_unread(
284284
self, user_id: str, **data: Any
285285
) -> Union[StreamResponse, Awaitable[StreamResponse]]:
286286
"""
287-
Marks channel as unread from a specific message or thread, if thread_id is provided in data
287+
Marks channel as unread from a specific message, thread, or timestamp, if thread_id is provided in data
288288
a thread will be searched, otherwise a message.
289289
290290
:param user_id: the user ID for the event
291-
:param data: additional data, ie {"message_id": last_message_id} or {"thread_id": thread_id}
291+
:param data: additional data, ie {"message_id": last_message_id}, {"thread_id": thread_id}, or {"message_timestamp": timestamp}
292292
:return: The server response
293293
"""
294294
pass

0 commit comments

Comments
 (0)