🐛 Bug fixes
This commit is contained in:
parent
ee021f1422
commit
f44a75d225
@ -86,7 +86,9 @@ func NewMessage(message models.Message) (models.Message, error) {
|
|||||||
message, _ = GetMessage(message.Channel, message.ID)
|
message, _ = GetMessage(message.Channel, message.ID)
|
||||||
for _, member := range members {
|
for _, member := range members {
|
||||||
doesNotify := true
|
doesNotify := true
|
||||||
if member.ID != message.Sender.ID {
|
if member.ID == message.SenderID {
|
||||||
|
doesNotify = false
|
||||||
|
} else {
|
||||||
switch member.Notify {
|
switch member.Notify {
|
||||||
case models.NotifyLevelNone:
|
case models.NotifyLevelNone:
|
||||||
doesNotify = false
|
doesNotify = false
|
||||||
@ -105,8 +107,6 @@ func NewMessage(message models.Message) (models.Message, error) {
|
|||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
doesNotify = false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if doesNotify {
|
if doesNotify {
|
||||||
|
Loading…
Reference in New Issue
Block a user