1
This commit is contained in:
parent
de4395cabf
commit
dbc08e5636
@ -124,6 +124,14 @@ func (this *mailMgr) addMail(m *mail) {
|
|||||||
this.wholeMails.Store(m.mailId, m)
|
this.wholeMails.Store(m.mailId, m)
|
||||||
} else if m.isType(constant.MAIL_TYPE_GROUP) {
|
} else if m.isType(constant.MAIL_TYPE_GROUP) {
|
||||||
this.groupMails.Store(m.mailId, m)
|
this.groupMails.Store(m.mailId, m)
|
||||||
|
} else if m.isType(constant.MAIL_TYPE_PERSONAL) {
|
||||||
|
if hum, ok := this.personalMails.Load(m.reciver); ok {
|
||||||
|
(hum.(*sync.Map)).Store(m.mailId, m)
|
||||||
|
} else {
|
||||||
|
p := new(sync.Map)
|
||||||
|
p.Store(m.mailId, m)
|
||||||
|
this.personalMails.Store(m.reciver, p)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user