Michael Vetter
a666f0deae
Fix formatting for privileges on
...
`/privileges on` lists `Moderator`, `Visitor` etc. Formatting was wrong
here. Printing privilige followed by nickaname in the same line.
2019-04-24 10:28:27 +02:00
Michael Vetter
30f9de61d0
Occupantswin: handle newline correctly
2019-04-24 09:49:14 +02:00
Michael Vetter
98f768bdc2
Add occupants wrap to help
2019-04-24 09:49:14 +02:00
Michael Vetter
259c5801cf
Fix occupants header char message
2019-04-24 09:49:14 +02:00
Michael Vetter
125ca2f0d2
Add occupants wrap option
...
Wrapping for the occupants panel like already exists for the roster
panel. See `/occupants wrap on`.
Regards https://github.com/boothj5/profanity/issues/690
2019-04-24 09:49:14 +02:00
Michael Vetter
637dfca6dd
Merge pull request #1076 from kaffeekanne/update-copyright-years
...
Update copyright years
2019-04-24 09:30:15 +02:00
kaffeekanne
f8640019f3
Update copyright years
2019-04-24 01:08:38 +02:00
Michael Vetter
0d8a39d8dd
Add occupantswin_occupants_all() stub to unittest
2019-04-23 14:47:42 +02:00
Michael Vetter
028839e35a
Put occupants update into own function
2019-04-23 14:13:08 +02:00
Michael Vetter
566022786d
Add occupants header char
...
`/occupants header char` now sets a character that is displayed before
the role (moderator, visitor..) in a room. Similar to `/roster header
char` is displaying a char for the roster.
Regards https://github.com/boothj5/profanity/issues/690
2019-04-23 14:13:03 +02:00
Michael Vetter
82ddd88578
Merge pull request #1073 from kaffeekanne/fix-indention-time-config
...
Fix indentation time confing
2019-04-23 12:51:54 +02:00
kaffeekanne
49e2838a98
Fix indentation for time config
2019-04-23 12:39:05 +02:00
Michael Vetter
d520667935
Adjust jid for occupants indent
...
Indent the jid one more space than nick.
2019-04-20 20:35:45 +02:00
Michael Vetter
2b0e75ce35
Add occupants indent autocompletion
2019-04-20 20:35:45 +02:00
Michael Vetter
295cb0daa7
Add occupants.indent to theme_template
2019-04-20 20:35:45 +02:00
Michael Vetter
62c23233f7
Allow setting occupants indent outside of MUC
...
And when not connected.
2019-04-20 20:35:37 +02:00
Michael Vetter
0c248a0b16
Add /occupants indent command
...
Roster has a `/roster contact indent` option.
Now we have the same for occupants. So contacts in roster and in MUC can
have configurable indentation.
Regards https://github.com/boothj5/profanity/issues/690
2019-04-18 20:53:02 +02:00
Michael Vetter
7e4e9e6688
Fix typo in /help roster
2019-04-18 17:05:10 +02:00
Michael Vetter
f601e875a9
Add library versioning to libprofanity
...
Fixes https://github.com/boothj5/profanity/issues/973
2019-04-18 12:03:21 +02:00
Michael Vetter
199e8752ca
Merge pull request #1063 from paulfariello/hotfix/presence-before-roster
...
Handle presence received before roster
2019-04-17 20:47:54 +02:00
Michael Vetter
2f6387f3fa
Set correct year in copyright display
...
Fixes https://github.com/boothj5/profanity/issues/1069
2019-04-17 20:44:39 +02:00
Michael Vetter
4403e667a7
Merge pull request #1067 from paulfariello/hotfix/omemo-policy
...
Always follow OMEMO policy
2019-04-17 20:41:20 +02:00
Paul Fariello
db55e01dce
Follow OMEMO policy even when opening window on message and carbon reception
...
This should close #1052
2019-04-17 15:54:15 +02:00
Paul Fariello
6d39f49f57
Fix server_event unit tests
...
roster_update_presence now requires that
roster_process_pending_presence() has been called. Otherwise presence
are set to pending and not processed yet.
2019-04-17 14:19:31 +02:00
Paul Fariello
973a05d15a
Handle presence received before roster
...
Presence of contact not found in roster are filtered out.
But sometimes roster is received after a first few presences.
We choose to store presences until we receive roster and then process
this presences.
Fixes #1050
2019-04-17 14:19:31 +02:00
Michael Vetter
3d3eabb63f
Merge pull request #1062 from paulfariello/feature/omemo-policy
...
Add OMEMO policy
2019-04-17 14:13:43 +02:00
Paul Fariello
21ae946896
Handle MUC anonymous state when auto starting OMEMO
...
When auto joining a MUC we don't have access to required information so
we just don't start OMEMO at this time.
Once we receive disco info we then try to start OMEMO.
2019-04-17 14:03:14 +02:00
Paul Fariello
a6eb0d2c43
Handle missing real jid in OMEMO encrypted MUC
...
This should never happens since we should ensure MUC is Non-Anonymous
before enabling OMEMO.
But we should neither segfault if this happens.
2019-04-17 14:03:14 +02:00
Paul Fariello
3ef9123ccb
Fix OTR unit test after account_new API change
2019-04-17 14:03:14 +02:00
Paul Fariello
7df7e05639
Fix unit test after account_new API change
2019-04-17 14:03:14 +02:00
Paul Fariello
5f015e32b2
Add OMEMO policy
...
There is 3 policy:
- manual: OMEMO session are only started manually
- automatic: OMEMO session are only started if they have been started
manually before
- always: OMEMO session are always started unless they have been ended
manually before
Closes #1040 and fixes #1052
2019-04-17 14:03:14 +02:00
Michael Vetter
9574127177
Merge pull request #1066 from paulfariello/hotfix/OMEMO-ensure-muc-is-nonanonymous
...
Ensure MUC is Non-Anonymous before starting OMEMO
2019-04-17 13:58:45 +02:00
Paul Fariello
8c71a74afe
Ensure MUC is Non-Anonymous before starting OMEMO
...
Store MUC anonymous type in mucwin for that purpose.
Fixes #1065
2019-04-17 13:56:27 +02:00
Michael Vetter
2eaec58c41
Merge pull request #1064 from paulfariello/hotfix/omemo-crypto-generation-too-long
...
Alert about long OMEMO cryptographic generation
2019-04-17 10:16:22 +02:00
Paul Fariello
fc8dc328a4
Alert about long OMEMO cryptographic generation
...
Fixes #1055
2019-04-17 09:55:16 +02:00
Michael Vetter
02d0f7fc38
Merge pull request #1061 from paulfariello/hotfix/handle-message-without-id-in-muc
...
Handle message without id in MUC
2019-04-15 10:43:39 +02:00
Michael Vetter
a22ddb3306
Merge pull request #1054 from paulfariello/hotfix/omemo_disconnect_while_not_loaded
...
Don't touch OMEMO cryto keys on disconnect if OMEMO wasn't loaded
2019-04-15 10:42:40 +02:00
Paul Fariello
9c0a395408
Don't persist OMEMO {signed,}prekey cleaning on disconnect
...
We should not remove signed prekey and prekey from persistent storage
when cleaning OMEMO store on disconnect.
2019-04-14 22:03:16 +02:00
Paul Fariello
94a39b2e9b
Handle malformed OMEMO identity.txt
...
If OMEMO identity.txt is malformed just abort loading.
User should be able to call `/omemo gen` again.
2019-04-14 22:03:16 +02:00
Paul Fariello
c33d8e5f0b
Don't unload OMEMO cryto on disconnect if OMEMO wasn't loaded
...
If OMEMO wasn't loaded, removing key would create empty identity.txt
file. Then at load time it would segfault profanity.
Another commit should fix load of malformed identity.txt.
2019-04-14 22:03:16 +02:00
Paul Fariello
cdc0290a59
Handle message without id in MUC
...
Some clients seems to send message without id.
2019-04-14 21:53:26 +02:00
Michael Vetter
0857b5ee4e
Set locale in docker container
...
Install libmicrohttpd which are used for (currently disabled) functional
tests).
Install glibc-locale to get the locales.
Unit test for `prof_whole_occurrences_tests` uses UTF-8 character and
fails without proper locale being set.
2019-04-14 10:39:24 +02:00
Michael Vetter
b40fcf248c
Add omemo_start_sessions to unittest stub
2019-04-14 00:02:17 +02:00
Michael Vetter
9cd5dfbdaa
Move travis from Ubuntu to docker+openSUSE
...
Travis supports only quite old Ubuntu releases.
They don't ship with libsignal-protocol-c and not with a recent enough
libgrcypt.
We could build libsignal-protocol-c manually but for libgcrypt it's more
annoying.
Let us switch to Docker and use openSUSE Tumbleweed, which is rolling
release) and thus have up to date libs.
2019-04-13 23:18:44 +02:00
Michael Vetter
4532735956
travis: Build libgcrypt by hand
...
Ubuntu xenial only has 1.6.x and we need 1.7.
2019-04-13 11:03:25 +02:00
Michael Vetter
f73500ae32
Use xenial on travis
2019-04-13 10:34:44 +02:00
Michael Vetter
c7d7e70b8d
Merge pull request #1056 from paulfariello/feature/omemo_travis
...
Build OMEMO support in travis
2019-04-13 10:27:20 +02:00
Paul Fariello
b2dfdc7509
Add libgcrypt minimum version in configure error log
2019-04-13 00:41:24 +02:00
Paul Fariello
c00ab0351d
Look for gcry_md_extract (libgcrypt >= 1.7.0)
2019-04-13 00:35:28 +02:00
Paul Fariello
991153d8bd
test
2019-04-13 00:27:10 +02:00