🐛 Bug fixes

This commit is contained in:
LittleSheep 2024-06-09 13:08:13 +08:00
parent ee021f1422
commit f44a75d225

View File

@ -86,7 +86,9 @@ func NewMessage(message models.Message) (models.Message, error) {
message, _ = GetMessage(message.Channel, message.ID)
for _, member := range members {
doesNotify := true
if member.ID != message.Sender.ID {
if member.ID == message.SenderID {
doesNotify = false
} else {
switch member.Notify {
case models.NotifyLevelNone:
doesNotify = false
@ -105,8 +107,6 @@ func NewMessage(message models.Message) (models.Message, error) {
default:
break
}
} else {
doesNotify = false
}
if doesNotify {