Clean frontend files

This commit is contained in:
Romaric Mourgues
2023-04-18 11:22:14 +02:00
parent 1d83a583dc
commit 0ff1cc97d4
547 changed files with 1271 additions and 27036 deletions
@@ -1,5 +1,5 @@
import Electron from 'app/features/global/framework/electron-service';
import { getDevice } from 'app/features/global/utils/device';
import Electron from '@features/global/framework/electron-service';
import { getDevice } from '@features/global/utils/device';
import { getBrowserInformation } from './common';
import { detect } from './detect';
@@ -1,21 +0,0 @@
import { NodeMessage } from 'app/features/messages/types/message';
import routerService from 'app/features/router/services/router-service';
/**
* Go to a specific message.
*
* @param {NodeMessage} message - The message to scroll to
* @param {String} companyId - The company id
* @param {String} channelId - The channel id
* @param {String} workspaceId - The workspace id
*/
export const gotoMessage = (message: NodeMessage, companyId: string, channelId: string, workspaceId: string): void => {
routerService.push(
routerService.generateRouteFromState({
companyId,
channelId,
workspaceId,
threadId: message.thread_id,
}),
);
};