| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
| |
Call `ui_close_all_wins();` only if we disconnect on purpose not when
connection is lost.
Otherwise users might miss messages.
This partly reverts 6ac73db876c83c7068c4795b19c09ea59eb18a40.
Regards https://github.com/profanity-im/profanity/issues/1083
|
|\
| |
| | |
Don't call mblen() to not depend on locale
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
mblen will fail with return code -1 if the locale used by the unit tests
isn't available on the machine. This will lead to an off by one error in some
tests where the needle is at the end of the haystack.
Since prof_occurrences expect null-terminated strings, the character after
the needle can simply be found by incrementing the address of the found needle
with strlen(needle).
|
|/
|
|
| |
Fix #1101
|
|\
| |
| |
| |
| | |
Force UI update before generating OMEMO crypto materials
The message wouldn't show up before the generation of OMEMO crypto materials started.
|
| | |
|
|/
|
|
|
| |
Duplicate code in client_events.c and server_events.c. Let's have
events/common.c and a function containing that code.
|
| |
|
|\
| |
| | |
Reset things on connection loss
|
| |
| |
| |
| |
| | |
Remove the windows, clear tls certs, clean omemo.
Regards https://github.com/profanity-im/profanity/issues/1089
|
|\ \
| |/
|/| |
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
|
| |
| |
| |
| | |
https://github.com/profanity-im/profanity/issues/1085
|
| |
| |
| |
| | |
Regards https://github.com/profanity-im/profanity/issues/1085
|
| |
| |
| |
| | |
Regards https://github.com/profanity-im/profanity/issues/1085
|
|/
|
|
| |
Regards https://github.com/profanity-im/profanity/issues/1085
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Fixes https://github.com/boothj5/profanity/issues/1079
|
|
|
|
| |
There is a typo here. So this actually never worked ;-)
|
|
|
|
|
| |
`/privileges on` lists `Moderator`, `Visitor` etc. Formatting was wrong
here. Printing privilige followed by nickaname in the same line.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Wrapping for the occupants panel like already exists for the roster
panel. See `/occupants wrap on`.
Regards https://github.com/boothj5/profanity/issues/690
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
`/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
|
| |
|
|
|
|
| |
Indent the jid one more space than nick.
|
| |
|
|
|
|
| |
And when not connected.
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|\
| |
| | |
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
|
| |
| |
| |
| | |
Fixes https://github.com/boothj5/profanity/issues/1069
|
|/
|
|
| |
This should close #1052
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
This should never happens since we should ensure MUC is Non-Anonymous
before enabling OMEMO.
But we should neither segfault if this happens.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| |
| |
| | |
paulfariello/hotfix/OMEMO-ensure-muc-is-nonanonymous
Ensure MUC is Non-Anonymous before starting OMEMO
|
| |
| |
| |
| |
| |
| | |
Store MUC anonymous type in mucwin for that purpose.
Fixes #1065
|
|/
|
|
| |
Fixes #1055
|
|\
| |
| |
| |
| | |
paulfariello/hotfix/handle-message-without-id-in-muc
Handle message without id in MUC
|
| |
| |
| |
| | |
Some clients seems to send message without id.
|
| |
| |
| |
| |
| | |
We should not remove signed prekey and prekey from persistent storage
when cleaning OMEMO store on disconnect.
|
| |
| |
| |
| |
| | |
If OMEMO identity.txt is malformed just abort loading.
User should be able to call `/omemo gen` again.
|
|/
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
When connecting for the first time or when creating a new account don't
use only 'profanity' as default resource.
Some server don't support having 2 connection with same resource. Using
profanity as default lead to deconnections.
|
| |
|