[core] Add friendGroupId default value (#2403)

Fixes https://mirai.mamoe.net/topic/1895
This commit is contained in:
cssxsh 2022-12-24 22:22:14 +08:00 committed by GitHub
parent eb0891fe24
commit 60dd4b5be6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ internal data class FriendInfoImpl(
override val uin: Long,
override var nick: String,
override var remark: String,
override var friendGroupId: Int
override var friendGroupId: Int = 0
) : FriendInfo {
companion object {
fun FriendInfo.impl() = if (this is FriendInfoImpl) this else FriendInfoImpl(uin, nick, remark, friendGroupId)