mirror of
https://github.com/jech/galene.git
synced 2024-11-09 18:25:58 +01:00
Implement /stopshare.
This commit is contained in:
parent
9f2df6af2a
commit
e59880e267
2 changed files with 8 additions and 1 deletions
1
CHANGES
1
CHANGES
|
@ -16,6 +16,7 @@ Galene 0.9 (unreleased)
|
||||||
menu) that discloses the IP address from which a user connected.
|
menu) that discloses the IP address from which a user connected.
|
||||||
* Implemented a contextual menu that triggers on a double click on
|
* Implemented a contextual menu that triggers on a double click on
|
||||||
a chat entry.
|
a chat entry.
|
||||||
|
* Added a new command "/stopshare".
|
||||||
|
|
||||||
14 April 2024: Galene 0.8.2
|
14 April 2024: Galene 0.8.2
|
||||||
|
|
||||||
|
|
|
@ -1612,7 +1612,7 @@ function closeUpMedia(label) {
|
||||||
*/
|
*/
|
||||||
function findUpMedia(label) {
|
function findUpMedia(label) {
|
||||||
for(let id in serverConnection.up) {
|
for(let id in serverConnection.up) {
|
||||||
let c = serverConnection.up[id]
|
let c = serverConnection.up[id];
|
||||||
if(c.label === label)
|
if(c.label === label)
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
@ -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
|
* parseCommand splits a string into two space-separated parts. The first
|
||||||
|
|
Loading…
Reference in a new issue