feat: sync iOS compatibility support

This commit is contained in:
A 2026-07-13 00:58:57 +08:00
parent 1f646ef024
commit 50803a604c
32 changed files with 871 additions and 78 deletions

View file

@ -0,0 +1,2 @@
DELETE FROM message_box_media WHERE category = 10;
DELETE FROM channel_message_media WHERE category = 10;

View file

@ -0,0 +1,15 @@
-- messages.getRecentLocations 复用共享媒体 seek index避免在 peer 历史上扫描 JSONB。
-- category=10 是服务端内部 geo_live 类别,不暴露给普通 messages.search filter。
INSERT INTO message_box_media (owner_user_id, box_id, peer_id, category, message_date)
SELECT owner_user_id, box_id, peer_id, 10, message_date
FROM message_boxes
WHERE NOT deleted
AND media ->> 'kind' = 'geo_live'
ON CONFLICT DO NOTHING;
INSERT INTO channel_message_media (channel_id, id, category, message_date)
SELECT channel_id, id, 10, message_date
FROM channel_messages
WHERE NOT deleted
AND media ->> 'kind' = 'geo_live'
ON CONFLICT DO NOTHING;

View file

@ -0,0 +1,2 @@
-- No historical client identity data was changed.
SELECT 1;

View file

@ -0,0 +1,3 @@
-- Reserved after local development applied version 85. Client identity must
-- converge only from a fresh initConnection; historical rows are not inferred.
SELECT 1;