Commit graph

3772 commits

Author SHA1 Message Date
e9a6ea7a59
Revert "tabs/privatetab: Fixes #3491: Add MUC <x/> marker in MUC-PMs. Thanks Ge0rG."
This reverts commit 0bf8727a92.
It doesn't actually work yet.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-10 17:53:08 +02:00
0bf8727a92
tabs/privatetab: Fixes #3491: Add MUC <x/> marker in MUC-PMs. Thanks Ge0rG.
From [XEP-0045 §7.5](https://xmpp.org/extensions/xep-0045.html#privatemessage):
> To allow for proper synchronization of these messages to the user's
> other clients by Message Carbons (XEP-0280) [19], the sending client
> SHOULD add an  element qualified by the
> 'http://jabber.org/protocol/muc#user' namespace to the message.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-07 21:07:02 +02:00
2373015273
tabs/privatetab: Remove unused safeJID import
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-07 21:06:41 +02:00
root
17e7f0768a Reorganize MAM 2019-09-05 17:42:27 +05:30
root
5e81fe2760 Removed error messages on startup. 2019-09-05 17:42:27 +05:30
root
81d9c267d3 Moved scroll_up code back to basetabs, added amount parameter to change no. of msgs per query. 2019-09-05 17:42:27 +05:30
feeadee893
core/commands: remove more safeJID calls
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-04 14:12:16 +02:00
Andrey Utkin
04677b2116 doc: update Gentoo package availability info
Signed-off-by: Andrey Utkin <andrey_utkin@gentoo.org>
2019-09-02 19:19:33 +02:00
d8638d5e31
Eradicate more safeJID calls
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-02 13:27:31 +02:00
7c7523e0ab
Only check for 110 to know if the presence is ours
This is only be needed for non-compliant servers. Removing as there
might be corner cases where it's actually harmful.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-02 12:25:07 +02:00
mathieui
eec8dcc206 Merge branch 'mam' into 'master'
Fixes message duplication on /reconnect.

See merge request poezio/poezio!43
2019-08-26 21:01:20 +02:00
root
b8c7e16739 Disabled the history on /reconnect, if the tab is still present and has messages in it. 2019-08-27 00:05:39 +05:30
mathieui
4d3830b460
Do not run a /part command when disconnecting from poezio
Use the underlying function instead
2019-08-26 12:20:20 +02:00
mathieui
c8cd17f509
Use the right settings when reconnecting from poezio 2019-08-26 12:18:13 +02:00
mathieui
cdb0d2614d Merge branch 'mam_info' into 'master'
Removes error and info messages on startup. Fixes #3485

Closes #3485

See merge request poezio/poezio!44
2019-08-26 10:41:15 +02:00
root
bd5ebba7f8 Added action parameter in mam_scroll, so that MAM query made on join (or any other query) is not considered as 'pageup' 2019-08-26 05:53:03 +05:30
mathieui
0556b3d7a3
Remove code for loading logs
we MAM now
2019-08-25 23:05:06 +02:00
mathieui
45d12b9092
Fix private tabs
- receipts
- receiving messages
- showing our sent messages
2019-08-25 23:00:49 +02:00
mathieui
a157a21c87
Always feed a JID to open_conversation_window 2019-08-24 14:17:38 +02:00
mathieui
ea5977da4a
Fix /self 2019-08-24 14:12:40 +02:00
cbc460106f Merge branch 'remove-duplicated-display-code' into 'master'
Remove display code from command_say

See merge request poezio/poezio!42
2019-08-23 13:45:34 +02:00
mathieui
fe249417b2
Remove display code from command_say
Use instead the message handler as if we received the message as carbons
2019-08-23 13:35:49 +02:00
Madhur Garg
b112748d1f Changed the value of the 'reverse' parameter back to boolean. 2019-08-23 09:51:04 +02:00
65c7deb585
Add missing top parameter to another build_new_message method
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-08-23 09:48:27 +02:00
mathieui
5312382f8a
Adapt the plugin safety metaclass for async funcs 2019-08-22 16:22:57 +02:00
mathieui
22ab7622f6 Merge branch 'mam' into 'master'
MAM: Sudden change in the order of messages.

See merge request poezio/poezio!40
2019-08-22 13:45:44 +02:00
Madhur Garg
99e6f2611f Added 'top' attribute in the 'Message' object (The problem of the wrong order of messages was because of this.) 2019-08-22 06:25:20 +05:30
Madhur Garg
9470f4943b Missed name change of start_date to start. 2019-08-22 04:53:59 +05:30
Madhur Garg
4d57a1faf9 Used named arguments instead of comments for 'add_message'. 2019-08-22 00:54:25 +05:30
Madhur Garg
254b8953c4 Removed repetitive code. 2019-08-22 00:54:25 +05:30
Madhur Garg
aae00af281 Changed query_id from int to boolean type. 2019-08-22 00:54:25 +05:30
Madhur Garg
47dc7f0095 Changed stanza_id attribute to last_stanza_id. 2019-08-22 00:54:25 +05:30
Madhur Garg
b01c796551 Corrected indentation and coding style. 2019-08-22 00:54:25 +05:30
Madhur Garg
e3c1ac4033 Initialized stanza_id in the basetabs. 2019-08-22 00:54:25 +05:30
Madhur Garg
7e4735b0ad Added a check on deterministic colors 2019-08-22 00:54:25 +05:30
Madhur Garg
fe5476a436 Added MAM query on join of MUC, earlier it was only there for auto-join groups 2019-08-22 00:54:25 +05:30
Madhur Garg
19386baa57 Update end date with buffer, useful for any tab which supports MAM and has messages in it. 2019-08-22 00:54:25 +05:30
Madhur Garg
afbff00c14 As per the current structure of slix, reverse parameter takes the value of before tag, so changed it's value from 'true' to the stanza id. 2019-08-22 00:54:25 +05:30
Madhur Garg
0602a7b0de Changed message for MUC's which doesn't support MAM 2019-08-22 00:54:25 +05:30
Madhur Garg
ddc23d7d89 Added user colors for messages retrieved using MAM 2019-08-22 00:54:25 +05:30
Madhur Garg
f496be6403 Removed MAM start/end messages, because they are not important for infinite scroll. 2019-08-22 00:54:25 +05:30
Madhur Garg
592932f7ca Changed the querry from timestamp to stanza-id based. 2019-08-22 00:54:25 +05:30
Madhur Garg
06eeda0233 Removed some extra repetitive code. 2019-08-22 00:54:25 +05:30
Madhur Garg
8a271e6f26 Added <before> tag to query messages based on stanza-id 2019-08-22 00:54:25 +05:30
Madhur Garg
a372e5f49f Added a call to scroll for 10 messages on initially joining the room. 2019-08-22 00:54:25 +05:30
Madhur Garg
4818210a63 Disabled the history of MUC(from 0045) if the MUC supports MAM. 2019-08-22 00:54:25 +05:30
Madhur Garg
c5ef5b0421 Changed the parameter from 'self' to 'tab' where the function is not a method. 2019-08-22 00:54:25 +05:30
Madhur Garg
bb20db0d0a Removed unnecessary 'self' argument from the add_line function. 2019-08-22 00:54:25 +05:30
Madhur Garg
e38fb04da6 Moved the splitting of nick to the function before the call of add_line is made. 2019-08-22 00:54:25 +05:30
Madhur Garg
8937a751d1 Added a check on the category of the chat group 2019-08-22 00:54:25 +05:30