import 'package:get/get.dart';
import 'package:loopin/IM/controller/chat_detail_controller.dart';
import 'package:tencent_cloud_chat_sdk/models/v2_tim_conversation.dart';

class ChatBinding extends Bindings {
  @override
  void dependencies() {
    V2TimConversation conversation = Get.arguments;
    final id = conversation.userID ?? conversation.groupID;
    Get.put(ChatDetailController(id: id!));
  }
}
