Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: message media type #683

Merged
merged 3 commits into from
Dec 28, 2021
Merged

Conversation

zapcannon87
Copy link
Contributor

No description provided.

@zapcannon87 zapcannon87 added the refactor Maintenance label Dec 28, 2021
@@ -735,6 +735,7 @@ class LCIMConversationTestCase: RTMBaseTestCase {
conv.read()
}
wait(for: [allReadExp], timeout: timeout)
delegator.reset()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

跑全量测试,这里出现一个「多次调用 exp」的异常,所以加了一个 reset

double width = [metaData[@"width"] doubleValue];
double height = [metaData[@"height"] doubleValue];
if (!(width > 0 && height > 0)) {
if (typedMessage.mediaType == LCIMMessageMediaTypeImage) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

改了 LCIMMessageMediaType 后,不知道为什么 switch 识别不了了,遂改成 if-else 模式

@zapcannon87 zapcannon87 merged commit cc051b9 into leancloud:master Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants