removed debug logs
This commit is contained in:
parent
082b3c7f1e
commit
4138a202f2
8 changed files with 4 additions and 18 deletions
|
|
@ -441,6 +441,7 @@ export async function handleEntryAfterLoadNavigation(
|
|||
initialChannelId: string,
|
||||
) {
|
||||
try {
|
||||
logDebug('handleEntryAfterLoadNavigation');
|
||||
const {operator, database} = DatabaseManager.getServerDatabaseAndOperator(serverUrl);
|
||||
|
||||
const currentTeamIdAfterLoad = await getCurrentTeamId(database);
|
||||
|
|
|
|||
|
|
@ -96,12 +96,9 @@ export async function handleChannelUpdatedEvent(serverUrl: string, msg: any) {
|
|||
const updatedChannel = JSON.parse(msg.data.channel) as Channel;
|
||||
|
||||
if (EphemeralStore.isConvertingChannel(updatedChannel.id)) {
|
||||
logDebug('Already processing.....');
|
||||
return;
|
||||
}
|
||||
|
||||
logDebug(`updatedChannel.id: ${updatedChannel.id}`);
|
||||
|
||||
const {database} = DatabaseManager.getServerDatabaseAndOperator(serverUrl);
|
||||
const existingChannel = await getChannelById(database, updatedChannel.id);
|
||||
const existingChannelType = existingChannel?.type;
|
||||
|
|
|
|||
|
|
@ -163,8 +163,6 @@ async function doReconnect(serverUrl: string) {
|
|||
}
|
||||
|
||||
export async function handleEvent(serverUrl: string, msg: WebSocketMessage) {
|
||||
logDebug(msg);
|
||||
|
||||
switch (msg.event) {
|
||||
case WebsocketEvents.POSTED:
|
||||
case WebsocketEvents.EPHEMERAL_MESSAGE:
|
||||
|
|
|
|||
|
|
@ -90,7 +90,6 @@ const ClientFiles = <TBase extends Constructor<ClientBase>>(superclass: TBase) =
|
|||
searchFilesWithParams = async (teamId: string, params: FileSearchParams) => {
|
||||
this.analytics?.trackAPI('api_files_search');
|
||||
const endpoint = teamId ? `${this.getTeamRoute(teamId)}/files/search` : `${this.getFilesRoute()}/search`;
|
||||
logDebug(endpoint);
|
||||
return this.doFetch(endpoint, {method: 'post', body: params});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -6,12 +6,12 @@ import React, {useCallback, useMemo} from 'react';
|
|||
import {type ListRenderItemInfo, StyleSheet, View} from 'react-native';
|
||||
import {FlatList} from 'react-native-gesture-handler'; // Keep the FlatList from gesture handler so it works well with bottom sheet
|
||||
|
||||
import {logDebug} from '@app/utils/log';
|
||||
import Loading from '@components/loading';
|
||||
|
||||
import TeamListItem from './team_list_item';
|
||||
|
||||
import type TeamModel from '@typings/database/models/servers/team';
|
||||
import { logDebug } from '@app/utils/log';
|
||||
|
||||
type Props = {
|
||||
iconBackgroundColor?: string;
|
||||
|
|
@ -69,8 +69,6 @@ export default function TeamList({
|
|||
footer = (<Loading/>);
|
||||
}
|
||||
|
||||
logDebug(teams);
|
||||
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<List
|
||||
|
|
|
|||
|
|
@ -61,21 +61,17 @@ export const ConvertGMToChannelForm = ({
|
|||
});
|
||||
|
||||
useEffect(() => {
|
||||
logDebug(`BBB commonTeams.length: ${commonTeams.length}`);
|
||||
if (commonTeams.length > 0) {
|
||||
logDebug(`BBB commonTeams[0]: ${commonTeams[0].display_name}`);
|
||||
setSelectedTeam(commonTeams[0]);
|
||||
}
|
||||
}, [commonTeams]);
|
||||
|
||||
const handleOnPress = useCallback(async () => {
|
||||
if (!selectedTeam || !newChannelName.current) {
|
||||
logDebug(`!selectedTeam: ${selectedTeam} || !newChannelName.current: ${newChannelName.current}`);
|
||||
return;
|
||||
}
|
||||
|
||||
const {updatedChannel, error} = await convertGroupMessageToPrivateChannel(serverUrl, channelId, selectedTeam.id, newChannelName.current);
|
||||
logDebug(updatedChannel);
|
||||
|
||||
if (error) {
|
||||
logError(error);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
import React, { useCallback, useEffect, useState } from 'react';
|
||||
import React, {useCallback, useEffect, useState} from 'react';
|
||||
import {useIntl} from 'react-intl';
|
||||
import {Platform} from 'react-native';
|
||||
|
||||
|
|
@ -9,9 +9,9 @@ import OptionItem from '@app/components/option_item';
|
|||
import {Screens} from '@app/constants';
|
||||
import {useTheme} from '@app/context/theme';
|
||||
import {dismissBottomSheet, goToScreen} from '@app/screens/navigation';
|
||||
import {logDebug} from '@app/utils/log';
|
||||
import {preventDoubleTap} from '@app/utils/tap';
|
||||
import {changeOpacity, makeStyleSheetFromTheme} from '@app/utils/theme';
|
||||
import { logDebug } from '@app/utils/log';
|
||||
|
||||
const getStyleFromTheme = makeStyleSheetFromTheme((theme: Theme) => {
|
||||
return {
|
||||
|
|
@ -40,10 +40,8 @@ export const TeamSelector = ({commonTeams, onSelectTeam, selectedTeamId}: Props)
|
|||
const placeholder = formatMessage({id: 'channel_into.convert_gm_to_channel.team_selector.placeholder', defaultMessage: 'Select a Team'});
|
||||
|
||||
useEffect(() => {
|
||||
logDebug(`AAA selectedTeamId: ${selectedTeamId}`);
|
||||
if (selectedTeamId) {
|
||||
const team = commonTeams.find((t) => t.id === selectedTeamId);
|
||||
logDebug(`AAA team: ${team?.display_name}`);
|
||||
setSelectedTeam(team);
|
||||
}
|
||||
}, [selectedTeamId]);
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@ const TeamSelectorList = ({teams, selectTeam}: Props) => {
|
|||
const [filteredTeams, setFilteredTeam] = useState(teams);
|
||||
|
||||
const handleOnChangeSearchText = useCallback((searchTerm: string) => {
|
||||
logDebug(searchTerm);
|
||||
if (searchTerm === '') {
|
||||
setFilteredTeam(teams);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue