Use MessageV1 type
This commit is contained in:
parent
fc0e2305e8
commit
89e3e85bf4
|
@ -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'
|
||||||
|
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue