mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-25 23:10:12 +08:00
[core] fix OnlineShortVideoInternal refine log
This commit is contained in:
parent
82483f0f13
commit
3937bca234
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user