Use MessageV1 type

This commit is contained in:
Felicio Mununga 2022-11-15 00:59:16 +01:00
parent fc0e2305e8
commit 89e3e85bf4
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
2 changed files with 3 additions and 2 deletions

View File

@ -18,7 +18,8 @@ import { handleWakuMessage } from './community/handle-waku-message'
import { LocalStorage } from './storage' import { LocalStorage } from './storage'
import type { Storage } from './storage' import type { Storage } from './storage'
import type { Message as WakuMessage, WakuFull } from 'js-waku/lib/interfaces' import type { WakuFull } from 'js-waku/lib/interfaces'
import type { MessageV1 as WakuMessage } from 'js-waku/lib/waku_message/version_1'
const THROWAWAY_ACCOUNT_STORAGE_KEY = 'throwaway_account' const THROWAWAY_ACCOUNT_STORAGE_KEY = 'throwaway_account'

View File

@ -20,7 +20,7 @@ import { mapChatMessage } from './map-chat-message'
import type { Account } from '../account' import type { Account } from '../account'
import type { Client } from '../client' import type { Client } from '../client'
import type { Community } from './community' import type { Community } from './community'
import type { WakuMessage } from 'js-waku' import type { MessageV1 as WakuMessage } from 'js-waku/lib/waku_message/version_1'
export function handleWakuMessage( export function handleWakuMessage(
wakuMessage: WakuMessage, wakuMessage: WakuMessage,