🚑 Fix server panic when new message
This commit is contained in:
parent
40179a5557
commit
fa50baf927
@ -95,8 +95,8 @@ func NewMessage(message models.Message) (models.Message, error) {
|
|||||||
case models.NotifyLevelNone:
|
case models.NotifyLevelNone:
|
||||||
continue
|
continue
|
||||||
case models.NotifyLevelMentioned:
|
case models.NotifyLevelMentioned:
|
||||||
if member.ID == message.ReplyTo.SenderID {
|
if message.ReplyTo != nil && member.ID == message.ReplyTo.SenderID {
|
||||||
continue
|
break
|
||||||
}
|
}
|
||||||
if val, ok := message.Content["mentioned_users"]; ok {
|
if val, ok := message.Content["mentioned_users"]; ok {
|
||||||
if usernames, ok := val.([]string); ok {
|
if usernames, ok := val.([]string); ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user