Skip to content

Commit

Permalink
Implement /stopshare.
Browse files Browse the repository at this point in the history
  • Loading branch information
jech committed May 8, 2024
1 parent 9f2df6a commit e59880e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Galene 0.9 (unreleased)
menu) that discloses the IP address from which a user connected.
* Implemented a contextual menu that triggers on a double click on
a chat entry.
* Added a new command "/stopshare".

14 April 2024: Galene 0.8.2

Expand Down
8 changes: 7 additions & 1 deletion static/galene.js
Original file line number Diff line number Diff line change
Expand Up @@ -1612,7 +1612,7 @@ function closeUpMedia(label) {
*/
function findUpMedia(label) {
for(let id in serverConnection.up) {
let c = serverConnection.up[id]
let c = serverConnection.up[id];
if(c.label === label)
return c;
}
Expand Down Expand Up @@ -3382,6 +3382,12 @@ commands.replace = {
}
};

commands.stopshare = {
description: 'stop screen share',
f: (c, r) => {
closeUpMedia('screenshare');
}
}

/**
* parseCommand splits a string into two space-separated parts. The first
Expand Down

0 comments on commit e59880e

Please sign in to comment.