1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 11:07:40 +08:00

Merge pull request #34 from wfjsw/patches/relax-group-card-char-limit

relax group card character limit
This commit is contained in:
Mrs4s 2020-08-25 01:08:50 +08:00 committed by GitHub
commit 16fc454f75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -241,14 +241,14 @@ func (m *GroupMemberInfo) DisplayName() string {
}
func (m *GroupMemberInfo) EditCard(card string) {
if m.Manageable() && strings.Count(card, "") <= 20 {
if m.Manageable() && len(card) <= 60 {
m.Group.client.editMemberCard(m.Group.Code, m.Uin, card)
m.CardName = card
}
}
func (m *GroupMemberInfo) EditSpecialTitle(title string) {
if m.Group.SelfPermission() == Owner && strings.Count(title, "") <= 6 {
if m.Group.SelfPermission() == Owner && len(title) <= 18 {
m.Group.client.editMemberSpecialTitle(m.Group.Code, m.Uin, title)
m.SpecialTitle = title
}