mirror of https://github.com/status-im/js-waku.git
Move chat message in js-waku
This commit is contained in:
parent
abbbd50512
commit
19d6459883
|
@ -4,13 +4,12 @@ import util from 'util';
|
|||
import TCP from 'libp2p-tcp';
|
||||
import { multiaddr, Multiaddr } from 'multiaddr';
|
||||
|
||||
import { ChatMessage } from '../lib/chat_message';
|
||||
import Waku from '../lib/waku';
|
||||
import { WakuMessage } from '../lib/waku_message';
|
||||
import { RelayDefaultTopic } from '../lib/waku_relay';
|
||||
import { StoreCodec } from '../lib/waku_store';
|
||||
|
||||
import { ChatMessage } from './chat_message';
|
||||
|
||||
const ChatContentTopic = 'dingpu';
|
||||
|
||||
(async function (): Promise<void> {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { expect } from 'chai';
|
||||
import fc from 'fast-check';
|
||||
|
||||
import { ChatMessage } from './chat_message';
|
||||
import { ChatMessage } from './index';
|
||||
|
||||
describe('Chat Message', function () {
|
||||
it('Chat message round trip binary serialization', function () {
|
|
@ -1,6 +1,6 @@
|
|||
import { Reader } from 'protobufjs/minimal';
|
||||
|
||||
import { ChatMessageProto } from '../proto/chat/v2/chat_message';
|
||||
import { ChatMessageProto } from '../../proto/chat/v2/chat_message';
|
||||
|
||||
// TODO: Move to waku library?
|
||||
export class ChatMessage {
|
Loading…
Reference in New Issue