mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-21 17:24:14 +08:00
[core] Add friendGroupId default value (#2403)
Fixes https://mirai.mamoe.net/topic/1895
This commit is contained in:
parent
eb0891fe24
commit
60dd4b5be6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user