Mark as unread only if following the thread (#6421)
This commit is contained in:
parent
12e97e49a8
commit
b5ff344b64
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ export const fetchAndSwitchToThread = async (serverUrl: string, rootId: string,
|
|||
const post = await getPostById(database, rootId);
|
||||
if (post) {
|
||||
const thread = await getThreadById(database, rootId);
|
||||
if (thread) {
|
||||
if (thread?.isFollowing) {
|
||||
const channel = await getChannelById(database, post.channelId);
|
||||
if (channel) {
|
||||
markThreadAsRead(serverUrl, channel.teamId, thread.id);
|
||||
|
|
|
|||
Loading…
Reference in a new issue