Fixed incorrect handling of idle kicks
This commit is contained in:
parent
2b97241b39
commit
8a488ff98a
1 changed files with 2 additions and 2 deletions
|
@ -464,7 +464,7 @@ namespace connection {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleCommandClientLeftView(json) {
|
handleCommandClientLeftView(json) {
|
||||||
let reason_id;
|
let reason_id = -1;
|
||||||
|
|
||||||
for(const entry of json) {
|
for(const entry of json) {
|
||||||
reason_id = entry["reasonid"] || reason_id;
|
reason_id = entry["reasonid"] || reason_id;
|
||||||
|
@ -515,7 +515,7 @@ namespace connection {
|
||||||
} else if(reason_id == ViewReasonId.VREASON_SERVER_LEFT) {
|
} else if(reason_id == ViewReasonId.VREASON_SERVER_LEFT) {
|
||||||
if(channel_from == own_channel)
|
if(channel_from == own_channel)
|
||||||
this.connection_handler.sound.play(Sound.USER_LEFT_DISCONNECT);
|
this.connection_handler.sound.play(Sound.USER_LEFT_DISCONNECT);
|
||||||
} else if(json["reasonid"] == ViewReasonId.VREASON_SERVER_KICK) {
|
} else if(reason_id == ViewReasonId.VREASON_SERVER_KICK) {
|
||||||
if(channel_from == own_channel)
|
if(channel_from == own_channel)
|
||||||
this.connection_handler.sound.play(Sound.USER_LEFT_KICKED_SERVER);
|
this.connection_handler.sound.play(Sound.USER_LEFT_KICKED_SERVER);
|
||||||
} else if(reason_id == ViewReasonId.VREASON_CHANNEL_KICK) {
|
} else if(reason_id == ViewReasonId.VREASON_CHANNEL_KICK) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue