feat: sync iOS compatibility support
This commit is contained in:
parent
1f646ef024
commit
50803a604c
32 changed files with 871 additions and 78 deletions
2
deploy/migrations/0084_geolive_media_index.down.sql
Normal file
2
deploy/migrations/0084_geolive_media_index.down.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
DELETE FROM message_box_media WHERE category = 10;
|
||||
DELETE FROM channel_message_media WHERE category = 10;
|
||||
15
deploy/migrations/0084_geolive_media_index.up.sql
Normal file
15
deploy/migrations/0084_geolive_media_index.up.sql
Normal 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;
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
-- No historical client identity data was changed.
|
||||
SELECT 1;
|
||||
|
|
@ -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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue