ADD - share own contact from Control Center

This commit is contained in:
smx.pusha
2026-08-12 09:12:10 +02:00
parent 25ae1b31c1
commit 65e30dc32c
6 changed files with 130 additions and 26 deletions
+15
View File
@@ -6868,6 +6868,21 @@ app.post('/api/:endpoint', (request, response) => {
})
return
}
if (endpoint === 'easyshare:own-contact') {
response.json({
success: true,
data: {
appId: 'phone',
copyText: 'Alex Morgan\n5551234567',
id: 'self',
kind: 'contact',
meta: { name: 'Alex Morgan', phoneNumber: '5551234567' },
subtitle: '5551234567',
title: 'Alex Morgan',
},
})
return
}
if (endpoint === 'easyshare:set-visibility') {
easyShareVisibility = request.body.visibility
response.json({ success: true, data: { visibility: easyShareVisibility } })