cleanup
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
// this file is responsible for managing chats.
|
// this file is responsible for managing chats.
|
||||||
|
|
||||||
|
import { DATA_VERSION, ValidObject, checkIsValidObject } from "./Utility/typeSafety";
|
||||||
import FileModel, { File } from "./fileModel";
|
import FileModel, { File } from "./fileModel";
|
||||||
import StorageModel, { storageKeys } from "./storageModel";
|
import StorageModel, { storageKeys } from "./storageModel";
|
||||||
import { ValidObject, checkIsValidObject } from "./Utility/typeSafety";
|
|
||||||
import {
|
import {
|
||||||
createTimestamp,
|
createTimestamp,
|
||||||
parse,
|
parse,
|
||||||
@@ -236,7 +236,7 @@ export default class ChatModel {
|
|||||||
// utility
|
// utility
|
||||||
static generateChatInfo = (primaryChannel: string): ChatInfo => {
|
static generateChatInfo = (primaryChannel: string): ChatInfo => {
|
||||||
return {
|
return {
|
||||||
dataVersion: "v2",
|
dataVersion: DATA_VERSION,
|
||||||
|
|
||||||
primaryChannel,
|
primaryChannel,
|
||||||
secondaryChannels: [],
|
secondaryChannels: [],
|
||||||
@@ -253,7 +253,7 @@ export default class ChatModel {
|
|||||||
file?: File
|
file?: File
|
||||||
): Promise<ChatMessage> => {
|
): Promise<ChatMessage> => {
|
||||||
const chatMessage: ChatMessage = {
|
const chatMessage: ChatMessage = {
|
||||||
dataVersion: "v2",
|
dataVersion: DATA_VERSION,
|
||||||
|
|
||||||
id: v4(),
|
id: v4(),
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user