Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
ca13e02e by wurstsalat at 2022-10-10T20:22:21+02:00
change: Preferences: Move show_chatstate_in_banner to ACE settings
- - - - -
2 changed files:
- gajim/common/setting_values.py
- gajim/gtk/preferences.py
Changes:
=====================================
gajim/common/setting_values.py
=====================================
@@ -685,6 +685,8 @@ class WorkspaceSettings(TypedDict):
'search_engine': '',
'send_on_ctrl_enter': _(
'Send message on Ctrl+Enter and make a new line with Enter.'),
+ 'show_chatstate_in_banner': _(
+ 'Show chat state (e.g. "is typing…") next to your contact’s name'),
'stun_server': _('STUN server to use when using Jingle'),
'trayicon_notification_on_events': _(
'Notify of events in the notification area.'),
=====================================
gajim/gtk/preferences.py
=====================================
@@ -303,12 +303,6 @@ def __init__(self, *args: Any) -> None:
'print_status_in_chats',
desc=_('For example: "Julia is now online"')),
- Setting(SettingKind.SWITCH,
- _('Show Chat State In Banner'),
- SettingType.CONFIG,
- 'show_chatstate_in_banner',
- desc=_('Show the contact’s chat state (e.g. typing) in '
- 'the chats tab’s banner')),
]
PreferenceBox.__init__(self, settings)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/ca13e02e7b25cffb6bc2f0aa9805acc5…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/ca13e02e7b25cffb6bc2f0aa9805acc5…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
6ca265f1 by wurstsalat at 2022-10-09T16:27:45+02:00
fix: SearchView: Limit displayed results to account_id of contact
- - - - -
1 changed file:
- gajim/common/storage/archive.py
Changes:
=====================================
gajim/common/storage/archive.py
=====================================
@@ -527,7 +527,7 @@ def get_conversation_between(self,
@timeit
def search_log(self,
- _account: str,
+ account: str,
jid: JID,
query: str,
from_users: Optional[list[str]] = None,
@@ -555,6 +555,7 @@ def search_log(self,
returns a list of namedtuples
'''
+ account_id = self.get_account_id(account)
jids = [jid]
kinds = map(str, [KindConstant.STATUS,
@@ -579,12 +580,14 @@ def search_log(self,
SELECT account_id, jid_id, contact_name, time, kind, show, message,
subject, additional_data, log_line_id
FROM logs NATURAL JOIN jids WHERE jid IN ({jids})
+ AND account_id = {account_id}
AND message LIKE like(?)
AND kind NOT IN ({kinds})
{users_query}
AND time BETWEEN ? AND ?
ORDER BY time DESC, log_line_id
'''.format(jids=', '.join('?' * len(jids)),
+ account_id=account_id,
kinds=', '.join(kinds),
users_query=users_query_string)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/6ca265f1af0760deb67ed16170335b7c…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/6ca265f1af0760deb67ed16170335b7c…
You're receiving this email because of your account on dev.gajim.org.