Files
simplex-chat/tests/fixtures/api/files/upload-complete.json
T
Evgeny @ SimpleX Chat c2d66c9d1d core, ios: complete XFTP uploads after the app leaves the foreground (#7966)
* core: delete agent file after every terminal XFTP upload event

* ios: spec for XFTP uploads during suspension

* core: pin simplexmq to evgeny-simplex fork for CI

* core: skip agent file deletion for XFTP errors without file ID

* ios: spec for counted XFTP uploads during suspension

* docs: plan for agent file deletion after XFTP uploads

* docs: revise plan for agent file deletion after XFTP uploads

* docs: revise plan wording for agent file deletion after XFTP uploads

* ios: spec wording for XFTP uploads during suspension

* core: pin simplexmq to the rewritten fork commit

* core: pin simplexmq with ended uploads excluded from suspension wait

* ios: suspend the app chat at once when the share sheet opens

* docs: plan decisions for the app yielding to the share extension

* core: verify agent file deletion for an item deleted during upload

* ios: spec wording for awaited XFTP uploads during suspension

* core: pin simplexmq with renamed upload wait functions and tests

* docs: plan wording, spec text and deletion test for agent files

* ios: suspend the app at once for the share sheet only while suspending

* docs: plan the narrowed share extension yielding

* docs: share extension wait, NSE and residual cases in plan and spec

* docs: plan tests for the remaining agent file deletion paths

* core: verify agent file deletion on the remaining upload paths

* core: pin simplexmq to the fork commit with merged master

* docs: plan line references after merging master and flow diagrams

* core: agent file deletion finalizer written with flip, as in the codebase

* ios: spec states the conditions of the share extension wait and the instant suspension

* docs: plan names the merged master base and the spec conditions

* core: pin simplexmq to the fork commit with the review fixes

* docs: spec and plan state when the share extension wait ends, link the simplexmq pull request, list the device test after app suspension

* core: pin simplexmq to the fork commit with the separate suspend timeout thread

* docs: spec and plan state that the share extension wait ends at the first check with both states suspended

* core: pin simplexmq master commit with the merged upload changes

* core, ios: test instant suspension on the share extension signal

* ios: deliver the share extension signal to the app in the setup wait test

* ios: await the delivery result outside the assertion

* ios: keep the app running until each file upload ends

* tests: record each upload fixture in its own test

* ios: restore the suspension of the app and the share extension of master

* tests: add the upload fixture files to record into

* tests: record upload responses and events for app tests

* core: update query plans

* tests: delete the uploaded item after its upload ends

* core: no error for upload events of a deleted file
2026-11-21 23:20:09 +00:00

325 lines
13 KiB
JSON

[
{
"result": {
"chatItem": {
"chatInfo": {
"contact": {
"activeConn": {
"agentConnId": "agentConnId",
"authErrCounter": 0,
"connChatVersion": 22,
"connId": 1,
"connLevel": 0,
"connStatus": {
"type": "ready"
},
"connType": "contact",
"contactConnInitiated": false,
"createdAt": "1970-01-01T00:00:00Z",
"entityId": 2,
"localAlias": "",
"peerChatVRange": {
"maxVersion": 22,
"minVersion": 9
},
"pqEncryption": true,
"pqRcvEnabled": true,
"pqSndEnabled": true,
"pqSupport": true,
"quotaErrCounter": 0,
"viaGroupLink": false
},
"chatDeleted": false,
"chatSettings": {
"enableNtfs": "all",
"favorite": false
},
"chatTags": [],
"chatTs": "1970-01-01T00:00:00Z",
"contactGrpInvSent": false,
"contactId": 2,
"contactStatus": "active",
"contactUsed": true,
"createdAt": "1970-01-01T00:00:00Z",
"localDisplayName": "bob",
"mergedPreferences": {
"calls": {
"contactPreference": {
"allow": "yes"
},
"enabled": {
"forContact": true,
"forUser": true
},
"userPreference": {
"preference": {
"allow": "yes"
},
"type": "user"
}
},
"commands": [],
"files": {
"contactPreference": {
"allow": "always"
},
"enabled": {
"forContact": true,
"forUser": true
},
"userPreference": {
"preference": {
"allow": "always"
},
"type": "user"
}
},
"fullDelete": {
"contactPreference": {
"allow": "no"
},
"enabled": {
"forContact": false,
"forUser": false
},
"userPreference": {
"preference": {
"allow": "no"
},
"type": "user"
}
},
"reactions": {
"contactPreference": {
"allow": "yes"
},
"enabled": {
"forContact": true,
"forUser": true
},
"userPreference": {
"preference": {
"allow": "yes"
},
"type": "user"
}
},
"sessions": {
"contactPreference": {
"allow": "no"
},
"enabled": {
"forContact": false,
"forUser": false
},
"userPreference": {
"preference": {
"allow": "no"
},
"type": "user"
}
},
"timedMessages": {
"contactPreference": {
"allow": "yes"
},
"enabled": {
"forContact": true,
"forUser": true
},
"userPreference": {
"preference": {
"allow": "yes"
},
"type": "user"
}
},
"voice": {
"contactPreference": {
"allow": "yes"
},
"enabled": {
"forContact": true,
"forUser": true
},
"userPreference": {
"preference": {
"allow": "yes"
},
"type": "user"
}
}
},
"profile": {
"displayName": "bob",
"fullName": "",
"image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAKHGlDQ1BJQ0MgUHJvZmlsZQAASImFVgdUVNcWve9Nb7QZeu9NehtAem/Sq6gMQ28OQxWxgAQjEFFEREARNFQFg1KjiIhiIQgoYA9IEFBisCAq6OQNJNH4//r/zDpz9ttzz7n73ffWmg0A6QCDxYqD+QCIT0hmezlYywQEBsngngEYCAIy0AC6DGYSy8rDwxUg8Xf9d7wbAxC33tHgzvrP3/9nCISFJzEBgIIRTGey2MkILkawT1oyi4tnEUxjI6IQvMLFkauYqxjQQtewwuoaHy8bBNMBwJMZDHYkAERbhJdJZUYic4hhCNZOCItOQDB3vjkzioFwxLsIXhcRl5IOAImrRzs+fivCk7QRrIL0shAcwNUW+tX8yH/tFfrPXgxG5D84Pi6F+dc9ck+HHJ7g641UMSQlQATQBHEgBaQDGcACbLAVYaIRJhx5Dv+9j77aZ4OsZIFtSEc0iARRIBnpt/9qlvfqpGSQBhjImnCEcUU+NtxnujZy4fbqVEiU/wuXdQyA9S0cDqfzC+e2F4DzyLkSB79wyi0A8KoBcL2GmcJOXePQ3C8MIAJeQAOiQArIAxXuWwMMgSmwBHbAGbgDHxAINgMmojceUZUGMkEWyAX54AA4DMpAJTgJ6sAZ0ALawQVwGVwDt8AQGAUPwQSYBi/AAngHliEIwkEUiAqJQtKQIqQO6UJ0yByyg1whLygQCoEioQQoBcqE9kD5UBFUBlVB9dBPUCd0GboBDUP3oUloDnoNfYRRMBmmwZKwEqwF02Er2AX2gTfBkXAinAHnwPvhUrgaPg23wZfhW/AoPAG/gBdRAEVCCaFkURooOsoG5Y4KQkWg2KidqDxUCaoa1YTqQvWj7qAmUPOoD2gsmoqWQWugTdGOaF80E52I3okuQJeh69Bt6D70HfQkegH9GUPBSGD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": {
"allow": "yes"
},
"commands": [],
"files": {
"allow": "always"
},
"fullDelete": {
"allow": "no"
},
"reactions": {
"allow": "yes"
},
"sessions": {
"allow": "no"
},
"timedMessages": {
"allow": "yes"
},
"voice": {
"allow": "yes"
}
},
"profileId": 2,
"shortDescr": "Bob"
},
"updatedAt": "1970-01-01T00:00:00Z",
"userPreferences": {}
},
"type": "direct"
},
"chatItem": {
"chatDir": {
"type": "directSnd"
},
"content": {
"msgContent": {
"text": "",
"type": "file"
},
"type": "sndMsgContent"
},
"file": {
"fileExpires": "1970-01-01T00:00:00Z",
"fileId": 1,
"fileName": "test.pdf",
"fileProtocol": "xftp",
"fileSize": 272376,
"fileSource": {
"filePath": "./tests/fixtures/test.pdf"
},
"fileStatus": {
"type": "sndComplete"
}
},
"mentions": {},
"meta": {
"createdAt": "1970-01-01T00:00:00Z",
"deletable": true,
"editable": true,
"hasLink": false,
"itemEdited": false,
"itemId": 8,
"itemSharedMsgId": "itemSharedMsgId",
"itemStatus": {
"msgRcptStatus": "ok",
"sndProgress": "complete",
"type": "sndRcvd"
},
"itemText": "",
"itemTs": "1970-01-01T00:00:00Z",
"sentViaProxy": false,
"showGroupAsSender": false,
"updatedAt": "1970-01-01T00:00:00Z",
"userMention": false
},
"reactions": []
}
},
"fileTransferMeta": {
"cancelled": false,
"chunkSize": 15780,
"fileId": 1,
"fileName": "test.pdf",
"filePath": "./tests/fixtures/test.pdf",
"fileSize": 272376,
"xftpSndFile": {
"agentSndFileDeleted": false,
"agentSndFileId": "agentSndFileId",
"privateSndFileDescr": "privateSndFileDescr"
}
},
"type": "sndFileCompleteXFTP",
"user": {
"activeOrder": 1,
"activeUser": true,
"agentUserId": "1",
"autoAcceptGroupInvitations": false,
"autoAcceptMemberContacts": false,
"clientService": false,
"fullPreferences": {
"calls": {
"allow": "yes"
},
"commands": [],
"files": {
"allow": "always"
},
"fullDelete": {
"allow": "no"
},
"reactions": {
"allow": "yes"
},
"sessions": {
"allow": "no"
},
"timedMessages": {
"allow": "yes"
},
"voice": {
"allow": "yes"
}
},
"localDisplayName": "alice",
"profile": {
"displayName": "alice",
"fullName": "",
"localAlias": "",
"preferences": {
"calls": {
"allow": "yes"
},
"commands": [],
"files": {
"allow": "always"
},
"fullDelete": {
"allow": "no"
},
"reactions": {
"allow": "yes"
},
"sessions": {
"allow": "no"
},
"timedMessages": {
"allow": "yes"
},
"voice": {
"allow": "yes"
}
},
"profileId": 1,
"shortDescr": "Alice"
},
"sendRcptsContacts": true,
"sendRcptsSmallGroups": true,
"showNtfs": true,
"userChatRelay": false,
"userContactId": 1,
"userId": 1
}
}
}
]