Skip to content

Commit

Permalink
Merge pull request #454 from haoxiuwen/doc-v2
Browse files Browse the repository at this point in the history
Modify IM iOS Docs
  • Loading branch information
haoxiuwen authored Oct 10, 2023
2 parents a376300 + 0615dea commit d1baa3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/document/ios/reaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Reaction 场景示例如下:

```objectivec
// 添加 Reaction。异步方法
[EMClient.sharedClient.chatManager addReaction:"reaction" toMessage:"messageId" completion:^(EMError * _Nullable error) {
[EMClient.sharedClient.chatManager addReaction:@"reaction" toMessage:@"messageId" completion:^(EMError * _Nullable error) {
refreshBlock(error, changeSelectedStateHandle);
}];

Expand All @@ -62,7 +62,7 @@ Reaction 场景示例如下:
```objectivec
// 删除 Reaction。异步方法
[EMClient.sharedClient.chatManager removeReaction:"reaction" fromMessage:"messageId" completion:^(EMError * _Nullable error) {
[EMClient.sharedClient.chatManager removeReaction:@"reaction" fromMessage:@"messageId" completion:^(EMError * _Nullable error) {
refreshBlock(error, changeSelectedStateHandle);
}];
Expand Down
5 changes: 2 additions & 3 deletions docs/document/ios/room_manage.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@
示例代码如下:

```objectivec
EMError *error = nil;
// 同步方法,异步方法见 [EMChatroomManager createChatroomWithSubject:description:invitees:message:maxMembersCount:completion]
EMChatroom *retChatroom = [[EMClient sharedClient].roomManager createChatroomWithSubject:@"aSubject" description:@"aDescription" invitees:@[@"user1",@[user2]]message:@"aMessage" maxMembersCount:aMaxMembersCount error:&error];
EMError *error;
EMChatroom *chatroom = [[EMClient sharedClient].roomManager createChatroomWithSubject:@"Subject" description:@"description" invitees:@[@"user1",@"user2"] message:@"message" maxMembersCount:100 error:&error];
```
### 加入聊天室
Expand Down

0 comments on commit d1baa3f

Please sign in to comment.