import { objectsEqual } from '@pigi/core-utils/build' ; import { ParsedMessage } from '../../../types/serialization' ; export class Utils { param message param other returns public static stateChannelMessagesConflict ( message , other ) { return ( ! ! message && ! ! other && message . message . channelID === other . message . channelID && message . message . nonce . equals ( other . message . nonce ) && ( message . sender === other . sender || message . sender === other . recipient ) && ( message . recipient === other . recipient || message . recipient === other . sender ) && ! objectsEqual ( message . message . data , other . message . data ) ) ; } }