[core] fix OnlineShortVideoInternal refine log

This commit is contained in:
StageGuard 2023-09-08 00:43:46 +08:00 committed by GitHub
parent 82483f0f13
commit 3937bca234
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ internal class OnlineShortVideoMsgInternal(
val contact = when (sourceKind) {
MessageSourceKind.FRIEND -> bot.getFriend(fromId) ?: error("Cannot find friend $fromId.")
MessageSourceKind.GROUP -> bot.getGroup(groupId) ?: error("Cannot find group $fromId.")
MessageSourceKind.GROUP -> bot.getGroup(groupId) ?: error("Cannot find group $groupId.")
else -> return null // ignore processing stranger's video message
}
val sender = when (sourceKind) {
@ -238,4 +238,4 @@ internal class OfflineShortVideoImpl(
result = 31 * result + thumbnail.hashCode()
return result
}
}
}