Michael Vetter
b7d5b964a2
Merge remote-tracking branch 'peetah/externalCallWithGSpawnSync' into
...
peetah-external-cmd
Merge peetahs external command calling improvements from his mirror at
https://framagit.org/peetah/profanity .
2020-06-03 13:20:25 +02:00
Pierre Mazière
fad77d9d70
Use external_call to get password via eval_password command
...
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2020-06-03 13:09:29 +02:00
Pierre Mazière
d92c576aa5
Get output and error streams from the command spawned by external_call()
...
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2020-06-03 13:09:29 +02:00
Michael Vetter
f1fe18b474
Merge pull request #1352 from wstrm/fix-test_cmd_otr
...
Initialize ProfWin.urls_ac to NULL to fix OpenBSD build
2020-06-03 09:11:22 +02:00
William Wennerström
05dde4bab4
Initialize ProfWin.urls_ac to NULL to fix OpenBSD build
2020-06-03 08:31:23 +02:00
toogley
26cda6b5e6
use always c99; fixes "universal character names" error msg
...
without this, i receive this error on openbsd 6.7:
src/event/server_events.c:1477:19: error: universal character names are only valid in C++ and C99
src/event/server_events.c:1478:19: error: universal character names are only valid in C++ and C99
gmake[1]: *** [Makefile:1925: src/event/server_events.o] Error 1
gmake[1]: Leaving directory '/home/toogley/profanity'
gmake: *** [Makefile:1212: all] Error 2
2020-06-02 15:30:55 +00:00
Michael Vetter
3d7a3134af
Fix offline roster contacts
...
Fix https://github.com/profanity-im/profanity/issues/1280
p_contact_set_presence() is triggered in
(roster_process_pending_presence) to set the presence to online
after the roster is displayed.
This happened to me _every time_ with one certain account on my server.
But not even once with other accounts on my server.
I don't understand why that is the case, but AFAIK the code should be
like it is in this PR anyways.
roster_process_pending_presence() was added there in
973a05d15a
to fix
https://github.com/profanity-im/profanity/issues/1050
2020-06-02 14:24:37 +02:00
Michael Vetter
7ca03562b5
Merge pull request #1350 from DebXWoody/configure-sqlite
...
Fix: configure sqlite
2020-06-02 09:53:24 +02:00
Dmitry Podgorny
75bb00368f
configure.ac: add additional check for libstrophe
...
After the library is found by pkg-config, try to build a simple program
to check the installation. The motivation of this check is that the
chance that users manually install libstrophe/libmesode is higher than
for other libs.
Fixes #1334 .
2020-05-31 20:02:48 +03:00
DebXWoody
cf78fac508
Fix: configure sqlite
2020-05-30 19:39:12 +02:00
Michael Vetter
ac5ce105ac
Fix memleak in cmd_urlopen()
2020-05-29 11:32:32 +02:00
Michael Vetter
de91a99178
Fix memleak in autocomplete_remove_older_than_max*
2020-05-29 11:28:58 +02:00
Michael Vetter
bfaf737efa
urlopen: get last URL first
...
Fix https://github.com/profanity-im/profanity/issues/1348
2020-05-29 11:26:18 +02:00
Michael Vetter
e19bf0e303
Merge branch 'bugfix/1329'
2020-05-29 10:29:20 +02:00
Michael Vetter
24e8243a98
_omemo_receive_devicelist() use if/else
2020-05-29 10:28:41 +02:00
Michael Vetter
8d9cbef1e3
Merge pull request #1343 from DebXWoody/bugfix/1333
...
Incoming iq stanza - Reset the autoping timer
2020-05-29 10:21:51 +02:00
Michael Vetter
4c047b0cb5
Merge pull request #1344 from DebXWoody/bugfix/1327
...
Bugfix: Status with PGP shows offline in titlebar
2020-05-28 20:47:48 +02:00
Michael Vetter
ceb5dcc0e5
Fix clears_chat_sessions unittest
2020-05-28 16:09:32 +02:00
Michael Vetter
d4692b1b2d
Fix carbon logging
...
Regards https://github.com/profanity-im/profanity/issues/1342
2020-05-27 22:06:04 +02:00
Michael Vetter
d240eb629c
Update readme and sponsors
...
new bade, more details in project, add dismail to sponsors.
2020-05-27 10:13:24 +02:00
Michael Vetter
c7a05a70e1
sponsors: fix formatting
2020-05-27 10:03:30 +02:00
Michael Vetter
d0dfe53076
radme: add project and install section
2020-05-27 10:01:45 +02:00
Michael Vetter
30c02e2656
Add SPONSORS
2020-05-27 09:53:44 +02:00
Michael Vetter
b49c1b8e37
readme: fix formatting
2020-05-27 09:45:23 +02:00
Michael Vetter
2db1118f4d
readme: add repology nr of repos
2020-05-27 09:44:20 +02:00
Michael Vetter
65e90dbad1
Restructure readme
2020-05-27 09:42:11 +02:00
Michael Vetter
d251b56166
Fix titlebar write position
...
Mistake introduced in 86f0e0ea70
The functions later on dont set an explitic position when writing their
strings.
Fix https://github.com/profanity-im/profanity/issues/1346
2020-05-27 08:59:00 +02:00
Michael Vetter
438552c14c
Save bookmark ignore list
2020-05-25 13:49:24 +02:00
Michael Vetter
1cfab017a4
Handle listing ignored bookmarks when none are ignored
2020-05-25 13:38:47 +02:00
Michael Vetter
de8975c008
Add and use connection_get_barejid()
...
Instead of connection_get_fulljid() and then creating a Jid from it.
2020-05-25 13:04:19 +02:00
Michael Vetter
4b5711fad5
Add cons_show_bookmarks_ignore stub
2020-05-24 17:59:08 +02:00
Michael Vetter
f6799029db
Add /bookmark ignore
autocompletion
...
Regards https://github.com/profanity-im/profanity/issues/1115
2020-05-24 17:55:15 +02:00
Michael Vetter
be4a6cac78
Add bookmark ignore add|remove
...
Regards https://github.com/profanity-im/profanity/issues/1115
2020-05-24 17:55:15 +02:00
Michael Vetter
f121554088
List ignored bookmarks
...
`/bookmarl ignore` lists the ignored bookmarks.
Regards https://github.com/profanity-im/profanity/issues/1115
2020-05-24 17:55:08 +02:00
Michael Vetter
ca3972b3ca
Add bookmark_ignore to unittest sources
2020-05-24 13:57:18 +02:00
Michael Vetter
090732ed96
Fix invalid read in titlebar
2020-05-24 13:47:21 +02:00
Michael Vetter
a2af4c3184
Fix memleak in bookmark minimize
...
Introduced in 36f2569e53
2020-05-24 13:35:09 +02:00
Michael Vetter
242ffbcf70
Add bookmark ignore functionality for multiple accounts
...
```
cat ~/.local/share/profanity/bookmark_ignore
[jubalh@iodoru.org ]
profanity@rooms.dismail.de=true
[testuser@domain.org ]
testr@rooms.domain.org=true
```
Regards https://github.com/profanity-im/profanity/issues/1115
2020-05-24 13:31:24 +02:00
Michael Vetter
d03c953d4a
PoC for bookmark ignore
...
```
~/.local/share/profanity % cat bookmark_ignore
[ignore]
profanity@rooms.dismail.de=
```
Regards https://github.com/profanity-im/profanity/issues/1115
2020-05-24 12:55:43 +02:00
DebXWoody
b882fd495a
OMEMO - Request only "current" item
...
NOTE: as per XEP-0060 §12.20, it is RECOMMENDED for the publisher to specify an
ItemID of "current" to ensure that the publication of a new item will overwrite
the existing item.
https://xmpp.org/extensions/xep-0384.html#devices
Issue: 1329
2020-05-23 07:41:06 +02:00
DebXWoody
d3e23ff030
Bugfix: Status with PGP shows offline in titlebar
...
There is code to redraw the ui, because the user may enter a passphase for the
private key. There was also a ui_init, which shouldn't be called, because it
will set the status to the initial state, which is 'offline' and 'no tls'.
Issue: #1327
2020-05-23 07:09:08 +02:00
DebXWoody
3cd3bced70
Incoming iq stanza - Reset the autoping timer
...
A autoping is to make sure that there is still a connection between server and
client. If the application receives incoming stanza, the connection is fine.
There is no need to wait for response, if there are other incomings.
Issue: #1333 and #1315
2020-05-23 06:52:03 +02:00
Michael Vetter
86f0e0ea70
Dont show resource in titlebar if it is too long
...
Fix https://github.com/profanity-im/profanity/issues/715
2020-05-22 20:42:44 +02:00
Michael Vetter
ee9ca24f87
Log all carbon copied messages
...
So far we only had the logging in sv_ev_incoming_carbon() not
sv_ev_outgoing_carbon().
Regards https://github.com/profanity-im/profanity/issues/1342
2020-05-22 16:42:20 +02:00
Michael Vetter
c8be052ec8
Fix segfault in new bookmark feature
...
Fix 88c36745fe
Copy paste mistake.
2020-05-22 16:20:02 +02:00
Michael Vetter
36f2569e53
Preserve Gajims minimize flag in bookmarks
...
Implement https://github.com/profanity-im/profanity/issues/1326
2020-05-22 16:18:28 +02:00
Michael Vetter
70db2a4b63
Fix build on sr.ht
...
Hopefully fixing:
```
cc1: warnings being treated as errors
tests/unittests/test_cmd_otr.c: In function
'cmd_otr_start_sends_otr_query_message_to_current_recipeint':
tests/unittests/test_cmd_otr.c:422: warning: 'window.urls_ac' is used
uninitialized in this function
gmake[2]: *** [Makefile:1913: tests/unittests/test_cmd_otr.o] Error 1
gmake[2]: Leaving directory '/home/build/profanity'
gmake[1]: *** [Makefile:2442: check-am] Error 2
gmake[1]: Leaving directory '/home/build/profanity'
gmake: *** [Makefile:2445: check] Error 2
```
2020-05-22 14:41:42 +02:00
Michael Vetter
89fd9394aa
Update bookmark test stub
2020-05-22 14:36:36 +02:00
Michael Vetter
88c36745fe
Add option to add bookmark name
...
`/bookmark add|update` got `name` field.
By default localpart of JID is used (like before) but now we can set the
name ourselves.
Regards https://github.com/profanity-im/profanity/issues/697
2020-05-22 14:18:20 +02:00
Michael Vetter
fad296b79e
Display bookmark name
...
Have field in struct and display the name in `/bookmark list`.
Regards https://github.com/profanity-im/profanity/issues/697
2020-05-22 13:56:00 +02:00