Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sfu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alain Takoudjou
sfu
Commits
7aab79c4
Commit
7aab79c4
authored
Aug 07, 2020
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Have chat messages go through the server even when sent to oneself.
parent
23c4aea5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
static/sfu.js
static/sfu.js
+0
-1
webclient.go
webclient.go
+1
-1
No files found.
static/sfu.js
View file @
7aab79c4
...
...
@@ -1108,7 +1108,6 @@ function handleInput() {
value
:
message
,
me
:
me
,
});
addToChatbox
(
myid
,
username
,
message
,
me
);
}
catch
(
e
)
{
console
.
error
(
e
);
displayError
(
e
);
...
...
webclient.go
View file @
7aab79c4
...
...
@@ -945,7 +945,7 @@ func handleClientMessage(c *webClient, m clientMessage) error {
}
case
"chat"
:
c
.
group
.
addToChatHistory
(
m
.
Id
,
m
.
Username
,
m
.
Value
,
m
.
Me
)
clients
:=
c
.
group
.
getClients
(
c
)
clients
:=
c
.
group
.
getClients
(
nil
)
for
_
,
cc
:=
range
clients
{
cc
,
ok
:=
cc
.
(
*
webClient
)
if
ok
{
...
...
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