Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
a39f0a1b by wurstsalat at 2023-02-20T20:09:19+01:00
imprv: Windows: Add direct download for Gajim Portable updates
- - - - -
1 changed file:
- gajim/common/application.py
Changes:
=====================================
gajim/common/application.py
=====================================
@@ -33,6 +33,7 @@
from nbxmpp.http import HTTPRequest
from packaging.version import Version as V
+from gajim import IS_PORTABLE
from gajim.common import app
from gajim.common import configpaths
from gajim.common import ged
@@ -324,7 +325,9 @@ def _on_update_response(self, request: HTTPRequest) -> None:
data = json.loads(request.get_data())
latest_version = data['current_version']
- setup_url = data['current_setup_url']
+ setup_url = data['current_win_setup']
+ if IS_PORTABLE:
+ setup_url = data['current_win_portable_setup']
if V(latest_version) > V(app.version):
app.ged.raise_event(GajimUpdateAvailable(version=latest_version,
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/a39f0a1ba3cf321d616016e4661ce556…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/a39f0a1ba3cf321d616016e4661ce556…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
1e165ac4 by wurstsalat at 2023-02-20T10:48:13+01:00
other: Windows installer: Remove 'Run application' checkbox on finish page
Running Gajim after the setup (which is using elevated privileges) will run gajim.exe in the same context.
This may lead to problems, since Gajim should not be run with elevated privileges.
Running with user privileges can not be easily achieved using NSIS.
Therefore, running the application after the setup has been disabled.
- - - - -
1 changed file:
- win/misc/gajim.nsi
Changes:
=====================================
win/misc/gajim.nsi
=====================================
@@ -36,7 +36,6 @@ Var StartMenuFolder
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
!insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
!insertmacro MUI_PAGE_INSTFILES
-!define MUI_FINISHPAGE_RUN "$INSTDIR\bin\Gajim.exe"
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_WELCOME
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/1e165ac427ac0a8b2574d951f6ce419c…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/1e165ac427ac0a8b2574d951f6ce419c…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
508b0523 by wurstsalat at 2023-02-19T22:34:17+01:00
cfix: Improve get_recent_muc_nicks query
- - - - -
1 changed file:
- gajim/common/storage/archive.py
Changes:
=====================================
gajim/common/storage/archive.py
=====================================
@@ -848,21 +848,22 @@ def get_recent_muc_nicks(self, contact: GroupchatContact) -> list[str]:
'''
Queries the last 50 message rows and gathers nicknames in a list
'''
+ jids = [contact.jid]
account_id = self.get_account_id(contact.account)
+ kinds = map(str, [KindConstant.GC_MSG])
sql = '''
SELECT contact_name
- FROM logs NATURAL JOIN jids
- WHERE +jid = ?
- AND account_id = ?
- AND kind = ?
+ FROM logs NATURAL JOIN jids WHERE jid IN ({jids})
+ AND account_id = {account_id}
+ AND kind IN ({kinds})
ORDER BY time DESC
- '''
+ '''.format(jids=', '.join('?' * len(jids)),
+ account_id=account_id,
+ kinds=', '.join(kinds))
+
- result = self._con.execute(sql, (contact.jid,
- account_id,
- KindConstant.GC_MSG
- )).fetchmany(50)
+ result = self._con.execute(sql, (tuple(jids))).fetchmany(50)
nicknames: list[str] = []
for row in result:
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/508b0523d3497f60d5fef00d015deec8…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/508b0523d3497f60d5fef00d015deec8…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
64719feb by Daniel Brötzmann at 2023-02-17T13:27:19+00:00
cfix: HighlightTest: Fix xmpp address test
- - - - -
1 changed file:
- test/common/test_message_needs_highlight.py
Changes:
=====================================
test/common/test_message_needs_highlight.py
=====================================
@@ -4,7 +4,7 @@
from gajim.common.helpers import message_needs_highlight
app.settings.set('muc_highlight_words', 'test;gajim')
-JID = 'romemo@xmppserver'
+JID = 'juliet@xmppserver'
NICK = 'Romeo'
@@ -20,7 +20,7 @@ def test_highlight(self):
t_text6 = 'Are you using Gajim?'
t_text7 = 'Did you test this?'
t_text8 = 'Hi romeo'
- t_text9 = 'My address is romeo@xmppserver'
+ t_text9 = 'My address is juliet@xmppserver'
f_text1 = 'RomeoDoes this work?'
f_text2 = ''
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/64719febddfb2dfe7e639f302cd2bb34…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/64719febddfb2dfe7e639f302cd2bb34…
You're receiving this email because of your account on dev.gajim.org.