diff libervia/web/pages/_browser/jid_search.py @ 1549:e47c24204449

browser (calls): update call to handle search, control buttons, and better UI/UX: - adapt to backend changes - UI and WebRTC parts are not separated - users can now be searched - add mute/fullscreen buttons - ring - cancellable dialog when a call is received - status of the call - animations - various UI/UX improvments rel 423
author Goffi <goffi@goffi.org>
date Wed, 09 Aug 2023 00:22:18 +0200
parents 66aa6e140ebb
children 5c4703870088
line wrap: on
line diff
--- a/libervia/web/pages/_browser/jid_search.py	Wed Aug 09 00:22:16 2023 +0200
+++ b/libervia/web/pages/_browser/jid_search.py	Wed Aug 09 00:22:18 2023 +0200
@@ -53,7 +53,9 @@
         self.empty_cb = empty_cb or self.on_empty_search
 
         current_search = search_elt.value.strip() or None
-        if current_search is not None:
+        if not current_search:
+            self.empty_cb()
+        else:
             aio.run(self.perform_search(current_search))
 
     def default_get_url(self, item):