Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on user logout seems does not logout or chat as offline status #10

Closed
mckaygerhard opened this issue Apr 11, 2019 · 3 comments
Closed

Comments

@mckaygerhard
Copy link

hi, i recently do not note until some situactions where my buddies must poweroff their machines..

priyadi/roundcube-converse.js-xmpp-plugin#11

seems the plugin does not go offline and in pdgin and other chats still appears as online!

this are solved in the repository plugin or still happened

i ask due see that plugin still are in 3.X and converse are on 4.X, of course i prefer 3.X brand due works more with more browsers..

@mckaygerhard
Copy link
Author

mckaygerhard commented Jul 15, 2022

i found a hack for this..

--- a/js/converse-rcmail.js
+++ b/js/converse-rcmail.js
@@ -41,6 +41,15 @@ function rcmail_converse_init(converse, args)
        }
     });
     
+       rcmail.addEventListener('beforeswitch-task', function(e){
+               if(e == 'logout'){
+                       converse.logout(); // reuse the logout of this auto plugin
+               }
+       });
+    
     //whitelist plugin, so converse doesn't refuse to load it

@drlight17
Copy link
Member

old version issue. closed.

@mckaygerhard
Copy link
Author

mckaygerhard commented Feb 27, 2023

umm noted changes since #15 with commit 5b14f73 thanks i'll test later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants