Michael Vetter
85520ecdc5
Remove unanimous MAM display
...
For some time users could choose to have the old way "unanimous" where
all the MUC history is just grey (or whatever was set). Now it is always
just displayed like regular new incoming MUC text.
2020-04-25 17:19:02 +02:00
Michael Vetter
570863df1b
Merge pull request #1325 from wstrm/docs/improve-correction-help
...
Mention the related commands for /correct and /correction
2020-04-25 09:06:10 +02:00
William Wennerström
7154c357e4
Mention the related commands for /correct and /correction
2020-04-24 19:27:02 +02:00
Michael Vetter
d572ffa061
Merge pull request #1324 from profanity-im/ui-fix
...
Fix condition in wins_show_subwin()
2020-04-23 11:12:27 +02:00
Dmitry Podgorny
4672d0ca19
ui: fix condition
...
Fix mistake in a condition. Also add sanity check to
win_refresh_with_subwin().
2020-04-23 14:30:49 +03:00
Michael Vetter
4a712fcc7b
Fixup for bad56b5062
...
sorry.. doing too many things at once..
2020-04-22 17:01:27 +02:00
Michael Vetter
bad56b5062
wins_show_subwin(): Add windows type test
...
Fix https://github.com/profanity-im/profanity/issues/1321
2020-04-22 14:03:29 +02:00
Michael Vetter
5ec1b03cbc
_handle_carbons(): fix potential memleak
2020-04-21 17:11:04 +02:00
Michael Vetter
813fd637a1
inp_readline() Correct slashguard feature
...
Protect against invalid reads by checking the length.
2020-04-21 16:47:18 +02:00
Michael Vetter
f27bd92731
Make compiler happy about win_refresh_without_subwin
2020-04-20 16:44:47 +02:00
Michael Vetter
b1d71236fe
win_refresh_with_subwin() fixup
...
Fixup for 86af6925d9
2020-04-20 16:35:13 +02:00
Michael Vetter
b9c384d6ca
_iq_id_handler_free() dont set NULL
...
No effect here.
2020-04-20 16:17:09 +02:00
Michael Vetter
fb85cec129
Remove unused func wins_close_current()
2020-04-20 16:16:18 +02:00
Michael Vetter
8d25e18b9a
Remove file_getline() declaration
...
Follow up for a6fa8e8e0d
2020-04-20 16:15:00 +02:00
Michael Vetter
9e73782f72
_destroy_tab() dont set tab to NULL
...
Setting the local pointer to NULL has no effect.
_destroy_tab() is used for g_hash_table_new_full() so we cant use a **
and set tab to NULL.
2020-04-20 16:10:24 +02:00
Michael Vetter
86af6925d9
Simplify win_refresh_with_subwin()
2020-04-20 16:09:40 +02:00
Michael Vetter
70683c07ab
_mucwin_print_mention(): No need to assign pos
2020-04-20 16:02:19 +02:00
Michael Vetter
b2ec6ba4ce
ui_room_join() dont get nick twice
2020-04-20 16:01:05 +02:00
Michael Vetter
785e3f5623
cons_show_aliases() simpify condition
2020-04-20 15:59:31 +02:00
Michael Vetter
5db14b2c48
Fix parsing of alias command
...
This actually only set the local ran pointer to NULL.
But we want an effect on the outside variable.
2020-04-20 15:54:32 +02:00
Michael Vetter
25dbebab17
log: don't log dt
...
Use another name.
2020-04-20 15:48:01 +02:00
Michael Vetter
5a42883c27
log: Dont shadow logp
...
Let's use another name.
2020-04-20 15:46:27 +02:00
Michael Vetter
a6fa8e8e0d
Remove unneeded file_getline()
...
Not needed anymore since 0942d98c61
2020-04-20 15:42:01 +02:00
Michael Vetter
9e460973fa
Fix potential memleak in stanza_create_caps_from_query_element()
...
Each of those should only occur one time. But let's make sure we only
write/alloc one time to be on the safe side.
2020-04-20 15:31:48 +02:00
Michael Vetter
95b75a2948
Merge pull request #1319 from profanity-im/input
...
Make _inp_edited() more robust
2020-04-19 00:07:31 +02:00
Dmitry Podgorny
1f0159de36
Make _inp_edited() more robust
2020-04-19 00:19:16 +03:00
Michael Vetter
a39e44ac1d
Merge pull request #1318 from DebXWoody/OMEMO-MUC-Device
...
OMEMO Device List only for non anonymous MUCs
2020-04-18 21:44:20 +02:00
Michael Vetter
b282965ede
Escape message before adding to SQL backend
2020-04-18 10:01:40 +02:00
DebXWoody
6268f5f0d7
OMEMO Device List only for non anonymous MUCs
...
Profanity request the OMEMO Device List for all members, also if the MUC is
anonymouse. If the user is Admin / Owner, the device list will be requtest.
Issue #1315
2020-04-17 19:53:34 +02:00
Michael Vetter
a1d37dda18
Add Fedora travis CI
...
Regards https://github.com/profanity-im/profanity/issues/1314#issuecomment-614242435
2020-04-17 15:46:55 +02:00
Michael Vetter
05db5226dd
Fix http_upload stub
2020-04-17 10:44:39 +02:00
Michael Vetter
0e1bccda18
Define lock in profanity.h as extern
...
Fix https://github.com/profanity-im/profanity/issues/1314
2020-04-17 10:14:27 +02:00
Michael Vetter
9be7d29f1b
Don't expose upload_processes
...
That's actually not good practise.
Realized this when checking for multiple symbol definition in issue
mentioned below.
Regards https://github.com/profanity-im/profanity/issues/1314
2020-04-17 10:05:09 +02:00
Michael Vetter
00fc0e2e8d
Set new mailinglist
2020-04-15 10:49:24 +02:00
Michael Vetter
616250b2b4
Review logging in iq.c
2020-04-14 18:53:08 +02:00
Michael Vetter
48290d3d61
Review logging for blocking.c
2020-04-14 18:32:43 +02:00
Michael Vetter
b73606cc60
Review logging in presence.c
...
Some stuff just floods the log file. We only need this when debugging.
Others are useless without more info.
2020-04-14 18:29:15 +02:00
Michael Vetter
00cf4e6f41
Merge pull request #1313 from profanity-im/memleaks
...
Free GError objects
2020-04-14 09:40:51 +02:00
Dmitry Podgorny
b3eea13125
Free GError objects
...
glib functions can allocate a GError object that must be freed with
g_error_free(). Otherwise a memory leak happens.
There are similar unfixed places in omemo, check:
grep "&error" src/omemo/omemo.c
Fixes #1304 .
2020-04-14 03:26:49 +03:00
Michael Vetter
a42c2a1134
Only print chathistory if regular chat message
...
MUCPMs and regular chat messages get printed with the same code.
But we don't save MUC PMs in the sqldb, because another jid could use
the same nick the next time.
And if we would take the log out we would need a different routine,
checking for resourcepart too.
Fix https://github.com/profanity-im/profanity/issues/1312
2020-04-13 21:57:28 +02:00
Michael Vetter
a800bfcbf8
Merge pull request #1306 from profanity-im/feature/mam
...
Add basic MAM support
2020-04-13 10:50:18 +02:00
Michael Vetter
18c64c0580
Free timestamp correctly
...
g_date_time_add_days() actually creates a new one.
2020-04-13 10:04:37 +02:00
Michael Vetter
51518497e5
Add hidden MAM setting and trigger MAM retrievel when opening new window
...
Only when we start the conversation.
Not yet when we get messaged and a new window is opened.
Need to have sorting of messages in the window buffer then, I guess.
Also MAM IQ should only be send one time in such a case.
If MAM is enabled history from sql backend will not be shown.
`mam` in profrc enables experimental MAM.
Can change soon again. Don't rely on stuff in this stage ;)
2020-04-12 00:42:02 +02:00
Michael Vetter
98200ebd43
Check if server suppors MAM
2020-04-12 00:24:00 +02:00
Michael Vetter
aedecee962
Get MAM since yesterday
...
Later we will have several options.
Getting everything since last timestamp (if none everything at all).
Getting everything since today + configure time (1 week).
Should also have a reload all command like conversations once you
cleared the history.
All MAM messages should be written into sql db.
And then probably displayed from there so that regular history works
too.
2020-04-12 00:06:36 +02:00
Michael Vetter
dd566d8d56
MAM: Correctly display incoming MAM chat message
2020-04-11 23:56:01 +02:00
Michael Vetter
180ec2b474
Add to_jid field to ProfMessage struct
...
Is usefult in many cases if we want cleaner code.
Hope this edit didn't break anything though ;-)
2020-04-11 17:11:53 +02:00
Michael Vetter
e23bc38083
Quick and dirty display of MAM messages
2020-04-11 16:05:14 +02:00
Michael Vetter
38273fef5c
First test with receiving MAM
2020-04-11 16:05:14 +02:00
Michael Vetter
f3b8cc407d
_handle_chat: return if no 'from'
...
Let's not crash :-)
2020-04-11 16:05:14 +02:00