🐛 Bug fixes on link expansion doesn't show on merged chat event

This commit is contained in:
2024-08-26 12:13:09 +08:00
parent e38778dbf9
commit fff756cbe0
3 changed files with 5 additions and 1 deletions

View File

@ -9,6 +9,7 @@ class LinkExpandController extends GetxController {
final Map<String, LinkMeta?> _cachedResponse = {};
Future<LinkMeta?> expandLink(String url) async {
log('[LinkExpander] Expanding link... $url');
final target = utf8.fuse(base64).encode(url);
if (_cachedResponse.containsKey(target)) return _cachedResponse[target];
final client = ServiceFinder.configureClient('dealer');