Commit graph

3783 commits

Author SHA1 Message Date
d35256ccc9 Merge remote-tracking branch 'origin/mr/35' 2019-06-17 14:49:10 +02:00
Madhur Garg
f9d34fc789 Updated copyright for lastlog plugin 2019-06-17 18:17:56 +05:30
Madhur Garg
7250eff335 Corrected the search for lastlog messages and refresh of the window.
Corrected the search for lastlog messages and refresh of the window.

patch from Maxime Buquet

Corrected the search for lastlog messages and refresh of the window.
2019-06-14 22:33:15 +05:30
Madhur Garg
d528a2ff55 Corrected the search for lastlog messages and refresh of the window. 2019-06-13 00:29:43 +05:30
6cfd23196c patch from Maxime Buquet 2019-06-13 00:23:48 +05:30
Madhur Garg
0a573f12dd Corrected the search for lastlog messages and refresh of the window. 2019-06-12 19:49:00 +05:30
1e21de272a initial version of a lastlog plugin
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-06-12 19:43:22 +05:30
91eabbd17d
plugins/figlet: error out when figlet doesn't exist
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-06-07 16:09:06 +02:00
Emmanuel Gil Peyrot
b7fc562c88 Also skip librsvg import on AttributeError
In the case python-gobject isn’t installed, but another package (such as
libibus) provides overrides, the gi module will still get imported fine
despite being empty, resulting in a traceback. To prevent this, we also
catch AttributeError so that gi.require_version can fail.
2019-05-28 16:02:15 +02:00
1a825de020
plugins/ping: Import missing JID value (thanks madhur, and pylint)
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-05-11 18:46:12 +01:00
5b35bde906
config: ensure tabname is not a JID object
Tabnames should be treated as opaque strings.

This specific fix prevents tabname (JID) to be compared with invalid
stringly-typed JIDs. JID's __eq__ method used to (after
poezio/slixmpp@47968963) try and convert anything into JIDs. This has
been fixed and now properly returns NotImplemented.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-05-07 11:58:19 +01:00
463ad192be
ConversationTab: fix undefined reference, missing self
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-29 21:57:32 +01:00
7a1b2b982f
plugins: Update use of tab.name to tab.jid where appropriate
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-28 01:02:49 +01:00
200f229464
MucTab: Replace tab.name with tab.jid where appropriate
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-28 00:32:09 +01:00
89a9b33e52
Replace tab.name with tab.jid
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-27 23:52:36 +01:00
ef5c27885c multiuserchat: type change_show method
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-27 21:46:18 +01:00
217bc731e8 core/commands: Use jid parameter instead of name where appropriate
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-27 21:46:18 +01:00
05019c4f2b core/completions: Use tab.jid where appropriate
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-27 21:46:18 +01:00
5a7bc16fe1 CommandCore: remove None check on MucTab.jid
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-27 21:46:18 +01:00
9358d541f8 PrivateTab: Use jid parameter instead of name where appropriate
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-27 21:46:18 +01:00
e1de0d95c6 *ConversationTab: Use jid parameter instead of name where appropriate
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-27 21:46:18 +01:00
2071788948 OneToOneTab: Remove default value for jid parameter
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-27 21:46:18 +01:00
d57352dc03 ChatTab: Remove None checks on ChatTab.jid
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-27 20:42:58 +01:00
a7826b7b33 ChatTab: Change ChatTab.name meaning
`ChatTab.name` is now its own property. It only mirrors `ChatTab.jid`
when it is None for compat reasons.

If code tries to set `ChatTab.name` and it is a valid JID, `ChatTab.jid`
is set instead for compat reasons and `ChatTab.name` stays with its
previous value.

To have `ChatTab.name` mirror `ChatTab.jid` again, set it to None.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-27 20:42:54 +01:00
0a4781134e
ChatTab: now accepts only Jids with a domain
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-27 19:39:18 +01:00
dc9edb101f Merge remote-tracking branch 'origin/mr/29' 2019-04-24 21:59:27 +01:00
Emmanuel Gil Peyrot
b07dc1b262 doc: Fix scroll_to_separator description. 2019-04-21 14:15:36 +02:00
Emmanuel Gil Peyrot
c737d2721f doc: Rename keys into keyboard shortcuts, to be more easily discoverable 2019-04-21 14:15:33 +02:00
2508eea8e6
Refresh tab when information element is added or removed
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-19 15:14:53 +01:00
e2981f3377
doc/commands: fix versionadded block indentation
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-18 20:36:42 +01:00
74abc59dca
save_order, save: config option is not always a string
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-17 15:50:23 +01:00
PS Le Stang
0d39b52962 Sort chatrooms by name 2019-04-13 23:59:46 +02:00
bddca0c62c
core/commands: remove more safeJID calls; add type hints
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-08 23:45:05 +01:00
e61b7742bb
list command: default to domain jid if no argument specified
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-08 23:16:46 +01:00
b5e8933ea0
core/commands: remove safeJID call in list command
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-08 23:06:00 +01:00
db2a22d099
ChatTab: Oops. prevent recursion when using setters
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-08 16:11:23 +01:00
8d53ff71d1
ChatTab: utilise self.jid
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-08 14:33:19 +01:00
4a3d1c76e3
ChatTab: Introduce self.jid as a JID object
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-08 14:27:40 +01:00
bf2225468e Revert work on tabs module to change tab.name to JID.
This reverts commits:
d693479d05
2d0cc092fc
89a61b84bd
8194d9afbd
e256c31875
a21335ac17
c96e528a8f
0551867bfd
6ab49c188a
2019-04-08 14:01:09 +01:00
6ab49c188a
Fix tab.name not being a string by calling the right property
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-08 11:38:29 +01:00
0551867bfd
PrivateInfoWin: remove safeJID call
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-08 11:15:17 +01:00
c96e528a8f
MucInfoWin: fix room name type
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-08 11:14:43 +01:00
a21335ac17
Remove more safeJID calls
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-07 23:52:30 +01:00
e256c31875
poezio/tabs: Fix jid types for base tabs contructors
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-07 23:51:22 +01:00
8194d9afbd
poezio/text_buffer: Remove JID type for now
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-07 22:27:55 +01:00
89a61b84bd
poezio/tabs/basetabs: remove safeJID call
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-07 22:21:29 +01:00
2d0cc092fc
poezio/bookmarks: Fix type for tab name
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-07 22:20:52 +01:00
d693479d05
safeJID: Remove some safeJID calls
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-07 22:15:40 +01:00
cdd4a99c45
impromptu: catch invalidJID exception for room jid
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-07 20:41:52 +01:00
11850bfe1d
safeJID: Add debug logging on invalidJID exception
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-07 20:40:48 +01:00