ADD - share contacts and rich content in chats

This commit is contained in:
smx.pusha
2026-08-11 21:37:39 +02:00
parent 7d146e709a
commit cdf8d276ef
25 changed files with 1350 additions and 79 deletions
+10
View File
@@ -1,3 +1,5 @@
SkyPhoneEasyShare = {}
Bridge.Database.AfterMigration("sky_phone", function()
local active_transfers = {}
local valid_kinds = {
@@ -259,6 +261,14 @@ local function sanitize_payload(source, device, data)
return payload, nil, encoded
end
function SkyPhoneEasyShare.SanitizeChatPayload(source, data)
local device, error_response = current_device(source)
if not device then
return nil, error_response.error
end
return sanitize_payload(source, device, data)
end
local function transfer_for_source(transfer, source)
local incoming = transfer.recipient_source == source
return {