Mercurial > libervia-web
comparison libervia/web/pages/chat/select/page_meta.py @ 1578:c57133362fb7
pages (chat/select): fix search submission.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 22 Nov 2023 16:31:36 +0100 |
parents | eb00d593801d |
children | c6976c5b85a1 |
comparison
equal
deleted
inserted
replaced
1577:9ba532041a8e | 1578:c57133362fb7 |
---|---|
28 rooms.sort(key=lambda r: r.name) | 28 rooms.sort(key=lambda r: r.name) |
29 | 29 |
30 | 30 |
31 @defer.inlineCallbacks | 31 @defer.inlineCallbacks |
32 def on_data_post(self, request): | 32 def on_data_post(self, request): |
33 jid_ = self.get_posted_data(request, "jid") | 33 jid_ = self.get_posted_data(request, "search") |
34 if "@" not in jid_: | 34 if "@" not in jid_: |
35 profile = self.get_profile(request) | 35 profile = self.get_profile(request) |
36 service = yield self.host.bridge_call("muc_get_service", "", profile) | 36 service = yield self.host.bridge_call("muc_get_service", "", profile) |
37 if service: | 37 if service: |
38 muc_jid = jid.JID(service) | 38 muc_jid = jid.JID(service) |