fix(mobile-next): 移除悬浮窗申请与位置发送,通话文案改为语音通话

同步完成后不再索取 SYSTEM_ALERT_WINDOW,去掉旧浮窗服务声明和定位权限/发送入口;历史位置消息仍只读展示。

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
编码工程师
2026-08-21 10:01:49 +08:00
co-authored by Cursor multica-agent
parent 092039bc1a
commit d6fafe7f95
20 changed files with 143 additions and 479 deletions
@@ -850,8 +850,7 @@ class IMUtils {
var customData = map['data'];
switch (customType) {
case CustomMessageType.call:
var type = map['data']['type'];
content = '[${type == 'video' ? StrRes.callVideo : StrRes.callVoice}]';
content = '[${StrRes.callVoice}]';
break;
case CustomMessageType.emoji:
content = '[${StrRes.emoji}]';
@@ -1326,15 +1325,19 @@ class IMUtils {
}
static void previewLocation(Message message) {
var location = message.locationElem;
Map detail = json.decode(location!.description!);
final location = message.locationElem;
if (location == null) {
IMViews.showToast(StrRes.location);
return;
}
final detail = LocationPreviewData.parse(location.description);
Logger.print('previewLocation ${location.latitude} ${location.longitude}');
Get.to(
() => MapView(
latitude: location.latitude!,
longitude: location.longitude!,
address1: detail['name'],
address2: detail['addr'],
latitude: location.latitude ?? 0,
longitude: location.longitude ?? 0,
address1: detail.name,
address2: detail.addr,
),
transition: Transition.cupertino,
popGesture: true,