Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Akamu
Game Server Go
Commits
b2442d5f
Commit
b2442d5f
authored
Oct 15, 2020
by
Julien Schröter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
endpoint/duel/endpoint.go
endpoint/duel/endpoint.go
+1
-0
No files found.
endpoint/duel/endpoint.go
View file @
b2442d5f
...
@@ -365,6 +365,7 @@ func postAnswer(repository DuelQuery, titleRepository title.TitleQuery, sessionR
...
@@ -365,6 +365,7 @@ func postAnswer(repository DuelQuery, titleRepository title.TitleQuery, sessionR
data
[
"duel"
]
=
strconv
.
FormatUint
(
uint64
(
status
.
ID
),
10
)
data
[
"duel"
]
=
strconv
.
FormatUint
(
uint64
(
status
.
ID
),
10
)
if
!
status
.
Finished
{
if
!
status
.
Finished
{
receiver
=
status
.
NextPlayer
notificationType
=
notifications
.
DuelResponseNotificationType
notificationType
=
notifications
.
DuelResponseNotificationType
notification
=
&
messaging
.
Notification
{
notification
=
&
messaging
.
Notification
{
Title
:
fmt
.
Sprintf
(
"%v hat gespielt."
,
username
),
Title
:
fmt
.
Sprintf
(
"%v hat gespielt."
,
username
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment