wildfirechat / wfc_flutter_plugins

野火flutter插件,包含即时通讯和实时音视频插件
Other
35 stars 26 forks source link

保存草稿,聊天界面保存的草稿在会话列表未能返回 #113

Closed SeongBrave closed 6 months ago

SeongBrave commented 6 months ago
  static Future<void> setConversationDraft(
      Conversation conversation, String draft) async {
    return ImclientPlatform.instance.setConversationDraft(conversation, draft);
  }

以上方法是有效的,通过

  ///获取会话信息
  static Future<ConversationInfo> getConversationInfo(
      Conversation conversation) async {
    return ImclientPlatform.instance.getConversationInfo(conversation);
  }

是可以查到报错的信息,但是 在会话列表返回的数据中draft 是为空的,

  ///获取会话列表
  static Future<List<ConversationInfo>> getConversationInfos(
      List<ConversationType> types, List<int> lines) async {
    return ImclientPlatform.instance.getConversationInfos(types, lines);
  }
heavyrain2012 commented 6 months ago

已经在论坛解决