Commit b2442d5f authored by Julien Schröter's avatar Julien Schröter

Set receiver for notification when it's the next player's action

parent 84df1f3a
Pipeline #2042 passed with stages
in 21 minutes and 29 seconds
......@@ -365,6 +365,7 @@ func postAnswer(repository DuelQuery, titleRepository title.TitleQuery, sessionR
data["duel"] = strconv.FormatUint(uint64(status.ID), 10)
if !status.Finished {
receiver = status.NextPlayer
notificationType = notifications.DuelResponseNotificationType
notification = &messaging.Notification{
Title: fmt.Sprintf("%v hat gespielt.", username),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment