Remove no longer needed todos (#6748)

This commit is contained in:
Daniel Espino García
2022-11-08 19:33:22 +01:00
committed by GitHub
parent b9ae96d45b
commit 579eb2d4cd
2 changed files with 1 additions and 5 deletions

View File

@@ -54,7 +54,6 @@ export const saveFavoriteChannel = async (serverUrl: string, channelId: string,
}
try {
// Todo: @shaz I think you'll need to add the category handler here so that the channel is added/removed from the favorites category
const userId = await getCurrentUserId(operator.database);
const favPref: PreferenceType = {
category: CATEGORY_FAVORITE_CHANNEL,

View File

@@ -128,10 +128,7 @@ export async function handleNewPostEvent(serverUrl: string, msg: WebSocketMessag
) {
markAsViewed = true;
markAsRead = false;
} else if ((post.channel_id === currentChannelId)) { // TODO: THREADS && !viewingGlobalThreads) {
// Don't mark as read if we're in global threads screen
// the currentChannelId still refers to previously viewed channel
} else if ((post.channel_id === currentChannelId)) {
const isChannelScreenMounted = NavigationStore.getNavigationComponents().includes(Screens.CHANNEL);
const isTabletDevice = await isTablet();