mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-09-04 08:13:23 +00:00
ADD - share contacts and rich content in chats
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user