1
0
Fork 0
forked from External/ergo

remove oragono.io/maxline-2 and fmsgid

This commit is contained in:
Shivaram Lingamneni 2020-01-18 23:47:05 -05:00
parent 5ef83c1673
commit 5d662742b9
14 changed files with 62 additions and 229 deletions

View file

@ -50,15 +50,7 @@ type Item struct {
// HasMsgid tests whether a message has the message id `msgid`.
func (item *Item) HasMsgid(msgid string) bool {
if item.Message.Msgid == msgid {
return true
}
for _, pair := range item.Message.Wrapped {
if pair.Msgid == msgid {
return true
}
}
return false
return item.Message.Msgid == msgid
}
func (item *Item) isStorable() bool {