Skip to content

Commit 276ce64

Browse files
YeungKCCopilot
andauthored
update conversation create (#1829)
* refactor: update dependencies and bump versions for intl, mixin_bot_sdk_dart, and sqlite3 * build(deps): update intl to version 0.19.0 and very_good_analysis to version 9.0.0 * build(deps): downgrade very_good_analysis to version 8.0.0 * Update pubspec.yaml Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent d704d74 commit 276ce64

File tree

4 files changed

+23
-16
lines changed

4 files changed

+23
-16
lines changed

lib/account/account_server.dart

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,13 @@ class AccountServer {
10191019
String name,
10201020
List<String> userIds,
10211021
) async {
1022-
final conversationId = const Uuid().v4();
1022+
final randomId = const Uuid().v4();
1023+
final conversationId = groupConversationId(
1024+
userId,
1025+
name.trim(),
1026+
userIds,
1027+
randomId,
1028+
);
10231029

10241030
final response = await client.conversationApi.createConversation(
10251031
ConversationRequest(
@@ -1028,6 +1034,7 @@ class AccountServer {
10281034
name: name.trim(),
10291035
participants:
10301036
userIds.map((e) => ParticipantRequest(userId: e)).toList(),
1037+
randomId: randomId,
10311038
),
10321039
);
10331040
await database.conversationDao.updateConversation(response.data, userId);

macos/Podfile.lock

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,25 +45,25 @@ PODS:
4545
- FlutterMacOS
4646
- screen_retriever_macos (0.0.1):
4747
- FlutterMacOS
48-
- sqlite3 (3.50.3):
49-
- sqlite3/common (= 3.50.3)
50-
- sqlite3/common (3.50.3)
51-
- sqlite3/dbstatvtab (3.50.3):
48+
- sqlite3 (3.50.4):
49+
- sqlite3/common (= 3.50.4)
50+
- sqlite3/common (3.50.4)
51+
- sqlite3/dbstatvtab (3.50.4):
5252
- sqlite3/common
53-
- sqlite3/fts5 (3.50.3):
53+
- sqlite3/fts5 (3.50.4):
5454
- sqlite3/common
55-
- sqlite3/math (3.50.3):
55+
- sqlite3/math (3.50.4):
5656
- sqlite3/common
57-
- sqlite3/perf-threadsafe (3.50.3):
57+
- sqlite3/perf-threadsafe (3.50.4):
5858
- sqlite3/common
59-
- sqlite3/rtree (3.50.3):
59+
- sqlite3/rtree (3.50.4):
6060
- sqlite3/common
61-
- sqlite3/session (3.50.3):
61+
- sqlite3/session (3.50.4):
6262
- sqlite3/common
6363
- sqlite3_flutter_libs (0.0.1):
6464
- Flutter
6565
- FlutterMacOS
66-
- sqlite3 (~> 3.50.3)
66+
- sqlite3 (~> 3.50.4)
6767
- sqlite3/dbstatvtab
6868
- sqlite3/fts5
6969
- sqlite3/math
@@ -211,8 +211,8 @@ SPEC CHECKSUMS:
211211
protocol_handler_macos: f9cd7b13bcaf6b0425f7410cbe52376cb843a936
212212
rhttp: 08d791d6373089de796318f4cfb172cbcf34e78b
213213
screen_retriever_macos: 452e51764a9e1cdb74b3c541238795849f21557f
214-
sqlite3: 83105acd294c9137c026e2da1931c30b4588ab81
215-
sqlite3_flutter_libs: 616267f2fca40e9c6af8c5d82324e05667040b6e
214+
sqlite3: 73513155ec6979715d3904ef53a8d68892d4032b
215+
sqlite3_flutter_libs: 83f8e9f5b6554077f1d93119fe20ebaa5f3a9ef1
216216
super_native_extensions: c2795d6d9aedf4a79fae25cb6160b71b50549189
217217
url_launcher_macos: 0fba8ddabfc33ce0a9afe7c5fef5aab3d8d2d673
218218
video_compress: 752b161da855df2492dd1a8fa899743cc8fe9534

pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,10 +1295,10 @@ packages:
12951295
dependency: "direct main"
12961296
description:
12971297
name: mixin_bot_sdk_dart
1298-
sha256: "707f78fec3eec9aa59e38fb0860f8d89f5853cf7df7642467af0af2fe05204f1"
1298+
sha256: "15b74153f4646c15b917388aa2b023e6ce9385a3a3024a954bb0f36204839dfe"
12991299
url: "https://pub.dev"
13001300
source: hosted
1301-
version: "1.4.0"
1301+
version: "1.4.1"
13021302
mixin_logger:
13031303
dependency: "direct main"
13041304
description:

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ dependencies:
9797
map: ^2.0.2
9898
markdown_widget: ^2.3.2+2
9999
mime: ^2.0.0
100-
mixin_bot_sdk_dart: ^1.4.0
100+
mixin_bot_sdk_dart: ^1.4.1
101101
mixin_logger: ^0.1.2
102102
network_info_plus: ^6.1.4
103103
octo_image: ^2.0.0

0 commit comments

Comments
 (0)