Fix declaration file names

pull/1198/head
Mikunj 5 years ago
parent 522e9fb4ec
commit 225d7f84e4

@ -1191,7 +1191,7 @@
}; };
}, },
getOpenGroup() { toOpenGroup() {
if (!this.isPublic()) { if (!this.isPublic()) {
return undefined; return undefined;
} }
@ -1325,7 +1325,7 @@
options.messageType = message.get('type'); options.messageType = message.get('type');
options.isPublic = this.isPublic(); options.isPublic = this.isPublic();
if (this.isPublic()) { if (this.isPublic()) {
const openGroup = this.getOpenGroup(); const openGroup = this.toOpenGroup();
const openGroupParams = { const openGroupParams = {
body, body,

@ -1017,7 +1017,7 @@
const previewWithData = await loadPreviewData(this.get('preview')); const previewWithData = await loadPreviewData(this.get('preview'));
const conversation = this.getConversation(); const conversation = this.getConversation();
const openGroup = conversation && conversation.getOpenGroup(); const openGroup = conversation && conversation.toOpenGroup();
const { AttachmentUtils } = libsession.Utils; const { AttachmentUtils } = libsession.Utils;
const [attachments, preview, quote] = await Promise.all([ const [attachments, preview, quote] = await Promise.all([

@ -1,4 +1,4 @@
import { MessageModel } from '../../js/models/message'; import { MessageModel } from '../../js/models/messages';
// TODO: Might convert it to a class later // TODO: Might convert it to a class later
let webAPI: any; let webAPI: any;

@ -1,8 +1,8 @@
import { queueAttachmentDownloads } from './attachments'; import { queueAttachmentDownloads } from './attachments';
import { Quote } from './types'; import { Quote } from './types';
import { ConversationModel } from '../../js/models/conversation'; import { ConversationModel } from '../../js/models/conversations';
import { EndSessionType, MessageModel } from '../../js/models/message'; import { MessageModel } from '../../js/models/messages';
async function handleGroups( async function handleGroups(
conversation: ConversationModel, conversation: ConversationModel,

@ -5,8 +5,7 @@ import { handleMessageJob } from './queuedJob';
import { handleEndSession } from './sessionHandling'; import { handleEndSession } from './sessionHandling';
import { handleUnpairRequest } from './multidevice'; import { handleUnpairRequest } from './multidevice';
import { EnvelopePlus } from './types'; import { EnvelopePlus } from './types';
import { ConversationModel } from '../../js/models/conversation'; import { MessageModel } from '../../js/models/messages';
import { EndSessionType, MessageModel } from '../../js/models/message';
import { downloadAttachment } from './attachments'; import { downloadAttachment } from './attachments';
import { handleMediumGroupUpdate } from './mediumGroups'; import { handleMediumGroupUpdate } from './mediumGroups';

Loading…
Cancel
Save