Michael Vetter
883dbe1911
Create seperate function for disconnect cleanup
...
Duplicate code in client_events.c and server_events.c. Let's have
events/common.c and a function containing that code.
2019-05-19 22:57:51 +02:00
Michael Vetter
813949667c
Merge pull request #1091 from frnky/fix_tests_on_32bit
...
Fix unit tests on 32-bit architectures
2019-05-17 21:51:44 +02:00
Frank Zschockelt
4683395aca
Use mock_type() for casting mock()
2019-05-08 21:52:16 +02:00
Frank Zschockelt
a5db791dc4
Use mock_ptr_type() to silence compiler warnings
...
Unit tests on 32-bit architectures were failing due to
"cast to pointer from integer of different size" warnings.
mock_ptr_type silences those by first casting to uintptr_t.
2019-05-08 21:51:29 +02:00
Michael Vetter
c94f3d0b4a
Fix ifdef guard (should have been OMEMO)
2019-05-06 16:11:22 +02:00
Michael Vetter
9ecc14c95d
Merge pull request #1090 from jubalh/fix/connection-loss-1089
...
Reset things on connection loss
2019-05-06 16:06:41 +02:00
Michael Vetter
6ac73db876
Reset things on connection loss
...
Remove the windows, clear tls certs, clean omemo.
Regards https://github.com/profanity-im/profanity/issues/1089
2019-05-06 12:30:33 +02:00
Michael Vetter
4a165b81e6
Merge pull request #1084 from jubalh/occupants-char
...
Add occupants char
2019-05-03 11:11:40 +02:00
Michael Vetter
45ea73125f
Update travis URL
2019-05-03 10:59:39 +02:00
Michael Vetter
d4892b29c4
Update profanity repo URL
...
Move from github.com/boothj5/* to github.com/profanity-im/*
2019-05-03 10:51:28 +02:00
Michael Vetter
a28f0d9e74
Update tests with new URL
...
https://github.com/profanity-im/profanity/issues/1085
2019-05-03 10:46:41 +02:00
Michael Vetter
ebbacec667
Update profanity URL in entity capabilities stanza
...
Regards https://github.com/profanity-im/profanity/issues/1085
2019-05-03 10:36:26 +02:00
Michael Vetter
9288621320
Update profanity URL in /tiny example
...
Regards https://github.com/profanity-im/profanity/issues/1085
2019-05-03 10:33:52 +02:00
Michael Vetter
1446ac15cb
Check for new profanity version using new URL
...
Regards https://github.com/profanity-im/profanity/issues/1085
2019-05-03 10:33:46 +02:00
Michael Vetter
83433ee8e0
Update profanity URL in spec file
...
Regards https://github.com/profanity-im/profanity/issues/1085
2019-05-03 10:28:04 +02:00
Michael Vetter
6f59a57b68
Update profanity URL in manpage
...
Regards https://github.com/profanity-im/profanity/issues/1085
2019-05-03 10:27:13 +02:00
Michael Vetter
187a2a07cd
Replace profanity URL in README
...
Regards https://github.com/profanity-im/profanity/issues/1085
2019-05-03 10:26:48 +02:00
Michael Vetter
f082563bf2
Add occupants char
...
`/occupants char` now sets a character that is displayed before the nick
in MUCs. Similar like `/roster char` is displaying a char for the roster.
Regards #690
2019-05-02 17:01:55 +02:00
Michael Vetter
722cb5fdc3
OMEMO: Initialize result in omemo_automatic_start
...
This is actually not needed because result will always be set.
hartmann had problems building profanity on OpenBSD and he proposed this
patch.
Let's use it to make the compiler happy there.
2019-04-29 11:32:22 +02:00
Michael Vetter
9dd441aa39
Merge pull request #1080 from jubalh/omemo-no-device-id
...
OMEMO: Check if ID is present before using it
2019-04-24 15:51:08 +02:00
Michael Vetter
a794dadfa9
OMEMO: Check if ID is present before using it
...
Fixes https://github.com/boothj5/profanity/issues/1079
2019-04-24 15:20:54 +02:00
Michael Vetter
32a25179f3
Merge pull request #1078 from jubalh/statusbarnu
...
Fix statusbar number in theme
2019-04-24 14:50:16 +02:00
Michael Vetter
1d2c0ddc69
Fix statusbar number in theme
...
There is a typo here. So this actually never worked ;-)
2019-04-24 14:48:24 +02:00
Michael Vetter
01e13f98fd
Add occupants.wrap to theme template
2019-04-24 10:50:01 +02:00
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