louiz’
857c7d3972
Use a different Date data type
...
PLEASE backup your database before testing this commit, and report any
migration issue.
In postgresql, we use timestamp with timezone.
In sqlite3 we use REAL (the date is expressed as julianday)
This requires a migration of the muclogline_ table:
In postgresql it’s pretty simple, we convert all the integer into timestamps
With sqlite3, we actually rename the table, create the new one with the
correct type, then copy everything to the new table, with a conversion
function for the Date_ column, and then we delete the old table.
fix #3343
2018-04-11 00:25:18 +02:00
Georg Lukas
49bb383080
Channel disco-info: use shorter string
2018-03-26 22:27:45 +02:00
louiz’
d81a9456ac
Change the nick of the joining user AFTER sending all the join stuff
...
fix #3305
2018-03-23 21:18:52 +01:00
louiz’
e2fc3cf68e
Properly handle force-join presences by sending everything in return
...
fix #3305
2018-03-23 16:16:30 +01:00
louiz’
0de282a177
Advertise the muc#stable_id feature on disco#info results
...
From XEP 0045:
“Note: the requirement to reflect the 'id' attribute was added in version
1.31 of this XEP. Servers following the new specification SHOULD advertise
that with a disco info feature of 'http://jabber.org/protocol/muc#stable_id '
on both the service domain and on individual MUCs, so that clients can check
for support.”
2018-03-18 19:37:41 +01:00
louiz’
9500bfd4cc
Reflect message IDs in channel MUCs
...
fix #3283
2018-03-18 19:33:07 +01:00
louiz’
158d743bf5
Remove the virtual channel feature altogether
2018-03-12 00:13:59 +01:00
louiz’
4a2a280d76
Support the <before/> element in MAM requests
2018-02-13 03:51:03 +01:00
louiz’
50d3c4a0b2
Do not forget an early return, to return the correct item-not-found error
2018-02-13 03:39:13 +01:00
louiz’
d705541435
Send a item-not-found error when the “after” value is not in the archive
2018-02-11 23:29:58 +01:00
louiz’
0280343ced
Handle the “after” RSM value to page through results
2018-02-10 19:51:59 +01:00
louiz’
99389eefba
Always return the oldest matching messages from MAM, even if no date is set
2018-02-10 17:47:42 +01:00
louiz’
369da19d41
Remove the debug logs from previous commit
2018-01-30 09:16:12 +01:00
louiz’
cb83178894
Add the complete='true' attribute only when appropriate
2018-01-30 09:07:21 +01:00
louiz’
17f2cb5c93
Do not forget the complete='true' attribute in MAM’s result iq
2018-01-29 21:11:20 +01:00
louiz’
f371d9ca46
xep-0106 escape the JIDs listed in a disco#items server query
...
fix #3325
2018-01-18 19:34:56 +01:00
louiz’
8409e50c1a
Fix a subtle iid parsing error in the adhoc code
2017-12-27 19:36:36 +01:00
louiz’
2d9f516d1d
Don’t answer to some requests towards MUC participants
...
These requests are only meant to be received by the room itself. The
participant must answer with not-implemented instead.
fix #3323
2017-12-27 19:23:28 +01:00
louiz’
131ef9946f
Include the <fin><set><first/><last/></></> nodes in the MAM iq result
...
fix #3322
2017-12-26 20:21:18 +01:00
louiz’
24dc05dd97
Run some of the ci tests against a postgresql docker container
2017-12-03 16:46:14 +01:00
louiz’
98227db6ad
Remove a forgotten and useless comment
...
[skip-ci]
2017-08-27 22:41:18 +02:00
louiz’
fcaffb9e77
Add support for the "history" node on MUC join
...
Supports the "seconds", "maxstanzas", "since" and "maxchars" (but only =0)
attributes.
fix #3270
2017-08-27 22:37:46 +02:00
louiz’
25243f53c2
In fixed mode, server messages come from biboumi’s hostname directly
...
Instead of irc.example.com@biboumi, because that’s actually user named
“irc.example.com”, in that case.
And that fixes the raw messages in fixed mode.
fix #3286
2017-08-27 14:32:29 +02:00
louiz’
f125de4833
Add the possibility to invite any external JID to a room
...
fix #3285
2017-07-20 23:09:37 +02:00
louiz’
407f95a108
Do not reply with an error when receiving a presence for a user JID
...
fix #3224
2017-07-20 21:34:27 +02:00
louiz’
729ea131c9
Send an unsubscribed presence on a probe if we don’t have a roster entry
2017-07-16 00:16:43 +02:00
louiz’
50a2bd736e
Answer to presences of type='probe'
2017-07-16 00:16:43 +02:00
louiz’
dd343609d5
Only send the IRC server presence if the user has this JID in their roster
2017-07-16 00:16:43 +02:00
louiz’
f9a6f97396
Implement the roster presences from IRC servers
2017-07-16 00:16:43 +02:00
louiz’
368bb82818
Send an additional unsubscribed presence when receiving an unsubscribe one
2017-07-16 00:16:43 +02:00
louiz’
71f125db1a
Send responses when we receive an unsubscribed presence
2017-07-16 00:16:43 +02:00
louiz’
84034ed3dc
Use a db roster to manage biboumi’s presence with the contacts
2017-07-16 00:16:43 +02:00
louiz’
faed8952cb
Remove a bunch of useless string_literal usage
2017-07-08 14:04:35 +02:00
louiz’
e75d7ad8ea
Add a Record History option in the Channel configuration form
...
fix #3269
2017-06-16 10:48:54 +02:00
louiz’
50cadf3dac
Implement our own database ORM, and update the whole code to use it
...
Entirely replace LiteSQL
fix #3271
2017-06-14 00:19:15 +02:00
louiz’
8cf0b833c4
Make the IRC channel configuration form available from the MUC config
...
fix #3250
2017-05-11 21:15:43 +02:00
louiz’
984d71838e
Limit the number of rooms sent by default in the disco#items response
...
fix #3219
2017-05-08 23:01:21 +02:00
louiz’
54fa739d6b
Limit of 100 MAM messages, if no other limit has been set by the client
...
fix #3256
2017-04-19 23:02:08 +02:00
louiz’
3a8203c366
Handle the RSM "max" value in the MAM requests
...
fix #3255
2017-04-12 17:07:39 +02:00
louiz’
5402a256d1
Apply all the clang-tidy modernize-* fixes
2017-04-07 18:45:24 +02:00
louiz’
e4cc69607c
Handle some iq of type='error' as valid ping response
...
fix #3251
2017-04-04 18:40:30 +02:00
louiz’
1a09c965eb
Remove two sneaky log_debug
2017-03-29 23:32:43 +02:00
louiz’
52b795d119
Add a missing namespace in the server disco#info response
2017-03-29 16:28:25 +02:00
louiz’
ce2daa5ea0
Respond to disco#info on MUC JIDs
...
Otherwise, some client won’t do MAM, since they don’t know biboumi supports
it.
2017-03-29 16:28:25 +02:00
louiz’
e8ccfe97be
Add a missing “pass by reference”
2017-03-29 16:28:25 +02:00
louiz’
0ab40dc1ab
Refactoring louloulibs and cmake
...
Use OBJECT libraries
Remove the louloulibs directory
Write FOUND variables in the cache
2017-03-14 21:45:23 +01:00
louiz’
f0bc6c83a8
Pass the shared_ptr by reference, to avoid useless copies
2017-03-08 19:04:15 +01:00
louiz’
d81c3ad5ac
Fix the order of from and to address in muc traffic info reply
...
And add a test for it.
fix #3238
2017-03-04 14:03:08 +01:00
louiz’
3a288340df
Fix the previous commit
...
fix #3231
2017-02-13 10:21:25 +01:00
louiz’
8b2f748b1d
Do not send a not-connected error, on "unavailable" presences
...
fix #3231
2017-02-13 10:00:49 +01:00