fix: multiple proteus 1:1 conversations with team member [WPB-9063] #2810
Annotations
2 errors and 10 warnings
ConversationRepository › init1to1Conversation › just returns a proteus conversation with a bot/service:
src/script/conversation/ConversationRepository.test.ts#L378
expect(received).toEqual(expected) // deep equality
Expected: {"accessCode": [Function c], "accessCodeHasPassword": [Function c], "accessModes": [], "accessRole": ["team_member"], "accessState": [Function c], "allUserEntities": [Function e], "archivedState": [Function c], "archivedTimestamp": [Function c], "blockLegalHoldMessage": false, "call": [Function c], "cipherSuite": 0, "cleared_timestamp": [Function c], "connection": [Function c], "creator": "", "display_name": [Function e], "domain": "test.wire.link", "epoch": 0, "firstUserEntity": [Function e], "globalMessageTimer": [Function c], "groupId": "", "hasAdditionalMessages": [Function c], "hasContentMessages": [Function c], "hasCreationMessage": false, "hasDirectGuest": [Function e], "hasExternal": [Function e], "hasFederatedUsers": [Function e], "hasGlobalMessageTimer": [Function e], "hasGuest": [Function e], "hasLastReceivedMessageLoaded": [Function anonymous], "hasLegalHold": [Function e], "hasService": [Function e], "hasUnread": [Function e], "id": "836e4eca-642b-4c14-ab7a-cf36f18371ec", "inTeam": [Function e], "incomingMessages": [Function c], "initialProtocol": "proteus", "is1to1": [Function e], "isActiveParticipant": [Function e], "isClearable": [Function e], "isCreatedBySelf": [Function e], "isGroup": [Function e], "isGuest": [Function c], "isGuestAndServicesRoom": [Function e], "isGuestRoom": [Function e], "isLeavable": [Function e], "isMutable": [Function e], "isProteusTeam1to1": [Function e], "isReadOnlyConversation": [Function e], "isRequest": [Function e], "isSelf": [Function e], "isServicesRoom": [Function e], "isTeamOnly": [Function e], "is_archived": [Function c], "is_cleared": [Function e], "is_loaded": [Function c], "is_pending": [Function c], "is_verified": [Function e], "lastDeliveredMessage": [Function e], "last_event_timestamp": [Function c], "last_read_timestamp": [Function c], "last_server_timestamp": [Function c], "legalHoldStatus": [Function c], "localMessageTimer": [Function c], "logger": {"Console": [Function anonymous], "_formatBuffer": [Function anonymous], "assert": [Function anonymous], "clear": [Function anonymous], "count": [Function anonymous], "countReset": [Function anonymous], "debug": [Function anonymous], "dir": [Function anonymous], "dirxml": [Function anonymous], "error": [Function anonymous], "group": [Function anonymous], "groupCollapsed": [Function anonymous], "groupEnd": [Function anonymous], "info": [Function anonymous], "log": [Function anonymous], "opts": {"logger": {"Console": [Function Console], "_counters": {}, "_formatBuffer": [Function consoleFormatter], "_groupDepth": 0, "_stderr": {"_closeAfterHandlingError": false, "_destroy": [Function dummyDestroy], "_events": {"end": [Function onReadableStreamEnd]}, "_eventsCount": 1, "_hadError": false, "_host": null, "_isStdio": true, "_maxListeners": undefined, "_parent": null, "_pendingData": null, "_pendingEncoding": "", "_readableState": {"autoDestroy": true, "awaitDrainWriters": null, "buffer": {"head": null, "length": 0, "tail": null}, "closeEmitted": false, "closed": false, "constructed": true, "dataEmitted": false, "decoder": null, "defaultEncoding": "utf8", "destroyed": false, "emitClose": false, "emittedReadable": false, "encoding": null, "endEmitted": false, "ended": false, "errorEmitted": false, "errored": null, "flowing": null, "highWaterMark": 16384, "length": 0, "multiAwaitDrain": false, "needReadable": false, "objectMode": false, "pipes": [], "readable": false, "readableListening": false, "reading": false, "readingMore": false, "resumeScheduled": false, "sync": true, Symbol(kPaused): null}, "_server": null, "_sockname": null, "_type": "pipe", "_writableState": {"afterWriteTickInfo": null, "allBuffers": true, "allNoop": true, "autoDestroy": true, "bufferProcessing": false, "buffered": [], "bufferedIndex": 0, "closeEmitted": false, "closed": false, "constructed": true, "corked": 0, "decodeStrings": false, "defaultEncoding": "utf8", "destroyed": false, "emitClose": false, "ended": false, "ending": false, "errorEmitted": false, "errored": null, "finalCalled":
|
test
Process completed with exit code 1.
|
test:
server/config/client.config.ts#L70
No magic number: 4
|
test:
server/config/client.config.ts#L72
No magic number: 500
|
test:
server/config/client.config.ts#L73
No magic number: 4
|
test:
server/config/client.config.ts#L74
No magic number: 8
|
test:
server/config/server.config.ts#L111
No magic number: 21080
|
test:
server/util/TimeUtil.ts#L22
No magic number: 8
|
test:
src/__mocks__/@wireapp/core-crypto.ts#L23
No magic number: 2
|
test:
src/__mocks__/@wireapp/core-crypto.ts#L27
No magic number: 2
|
test:
src/__mocks__/@wireapp/core-crypto.ts#L28
No magic number: 3
|
test:
src/__mocks__/@wireapp/core-crypto.ts#L32
No magic number: 2
|