Michael Vetter
5c41c5b380
Add comments to preferences.c
2020-01-29 11:50:04 +01:00
Michael Vetter
7dbc0baef3
Refactor theme.c
...
Make _theme_list_dir() static.
Sort _load_preferences() loadings accoding to type.
Add comments.
2020-01-29 11:49:08 +01:00
Michael Vetter
649d3e0381
Add gruvbox to CHANGELOG
2020-01-28 14:11:24 +01:00
Michael Vetter
62df236675
Merge pull request #1259 from Misaflo/theme-gruvbox
...
Add gruvbox theme
2020-01-28 14:09:23 +01:00
Michael Vetter
4c3cd01088
Fix two typos in CHANGELOG
2020-01-28 13:58:03 +01:00
Florent Lévigne
06daf9d733
Add gruvbox theme
...
Inspired by the vim gruvbox color scheme.
2020-01-28 13:33:38 +01:00
Michael Vetter
ca9dc5f799
Add Changes header to CHANGELOG
2020-01-28 13:22:08 +01:00
Michael Vetter
825bc58f04
Add changelog draft for 0.8.0
2020-01-28 13:11:01 +01:00
Michael Vetter
388bae084b
Revert "Save first delay tag as timestamp"
...
This reverts commit ef00b10c90
.
According to reply by user in
https://github.com/profanity-im/profanity/issues/1254#issuecomment-578389784
it didn't help.
2020-01-28 11:42:24 +01:00
Michael Vetter
ef00b10c90
Save first delay tag as timestamp
...
So far we got the first delay with a from that comes from the server.
This way we know it's MUC history.
Now we take the first time stamp we actually find. Which is likely the
one being added first. And should contain the correct time to display.
It would be nicer to actually compare the dates though.
Regards https://github.com/profanity-im/profanity/issues/1254
2020-01-24 21:30:35 +01:00
Michael Vetter
663aa09cce
Add cons_os_setting stub for tests
2020-01-24 21:26:40 +01:00
Michael Vetter
4bc82a5318
XEP-0092: Add configuration option to choose whether to send OS name
...
`/os on|off` now let's one choose whether to include the OS name once
`/software` (XEP-0092) is ran on us.
2020-01-24 19:27:42 +01:00
Michael Vetter
3c0647ec70
Fix typo in comment
2020-01-23 23:57:18 +01:00
Michael Vetter
8c34f2ce01
xep-0092: add config option to set whether OS is revealed
...
Default is on. `revail.os=false` in the `connection` section of the
config can disable it.
A command to configure this will follow.
2020-01-23 23:35:46 +01:00
Michael Vetter
cb1dbb2732
xep-0092: send OS too
...
So far we only sent client name and version. Let's also send the OS
name.
2020-01-23 23:18:55 +01:00
Michael Vetter
2d19ad0db4
Add option to notify about version request
...
Cannot be configured for now.
Can be set via `adv.notify.discoversion` in the `notification` section.
Will notify about version requests via XEP-0092 and XEP-0232.
Client version can still be seen via caps (capabilities).
See `stanza_attach_caps()`.
2020-01-23 22:54:47 +01:00
Michael Vetter
fd38c7adae
Add myself to copyright
2020-01-23 19:58:31 +01:00
Michael Vetter
6567936406
Refactor rosterwin_roster()
...
Use helper function for duplicate code.
2020-01-23 19:52:41 +01:00
Michael Vetter
ff57437155
Fix titlebar and rosterbar description
2020-01-23 19:44:33 +01:00
Michael Vetter
56b7482b08
Add option to display MUC name or JID in titlebar
...
Add `/titlebar use [name|jid]`.
2020-01-23 19:42:22 +01:00
Michael Vetter
0401412c64
Display MUC name in titlebar
2020-01-23 18:53:14 +01:00
Michael Vetter
036389e8c5
Fix spacing in titlebar.c
2020-01-23 18:48:54 +01:00
Michael Vetter
08a3f94a89
Print roster rooms use
in info page
2020-01-23 18:38:52 +01:00
Michael Vetter
10c4032d12
Respect /roster room use
setting also when sorted for service
2020-01-23 18:29:49 +01:00
Michael Vetter
31509022ef
NULL room_name in win_create_muc()
2020-01-23 18:22:36 +01:00
Michael Vetter
abc37c5255
Add /roster room use
autocompletion
2020-01-23 16:55:45 +01:00
Michael Vetter
9e35861001
Add /roster room use
command
...
`/roster room use name` to use the name of the MUC in the roster list.
`/roster room use jid` to use the jid of the MUC in the roster list.
Display it only in case `/roster room by none` is set so far.
2020-01-23 16:50:43 +01:00
Michael Vetter
3066fd77fc
Save MUC room name in ProfMucWin
...
We will need this if we want to display the Name instead of the JID.
2020-01-23 11:35:33 +01:00
Michael Vetter
d4c27f2f78
xep-0084: use hash table for avatar lookup
2020-01-22 11:28:01 +01:00
Michael Vetter
802df37926
XEP-0392: get background color from theme
...
So far we just used -1 (default color). Now we actually check whether
`bkgnd` is set in the theme file and use this if available.
Fix https://github.com/profanity-im/profanity/issues/1255
2020-01-22 10:01:04 +01:00
Michael Vetter
dac6d088d0
rosterwin: remove duplicate if
2020-01-22 09:30:09 +01:00
Michael Vetter
f76deea14e
Merge pull request #1256 from paulfariello/fix/1253
...
Add support for OMEMO 12 byte IV
2020-01-20 14:43:19 +01:00
Paul Fariello
8d1202efbd
Add support for 12 bytes IV
...
16 bytes IV should be used. Some clients can't use it so we should also
support decrypting 12 bytes IV.
Fix #1253
2020-01-20 14:41:18 +01:00
Michael Vetter
69bf76761a
Merge pull request #1252 from paulfariello/fix/1239
...
Fix crash with malformed OMEMO keys
2020-01-20 14:35:18 +01:00
Paul Fariello
c66cd17bbb
Fix maybe uninitialized and don't guard g_free
2020-01-20 14:34:09 +01:00
Paul Fariello
0dfed1f4c7
Ignore invalid base64 in OMEMO stanzas
...
Fixes #1239
2020-01-20 14:34:09 +01:00
Paul Fariello
84506cbaeb
Use OMEMO for offline MUC members ( #1242 )
2020-01-20 14:28:13 +01:00
Daniel Lublin
4420463541
Refactor /roster show/hide ( #1251 )
...
Refactor /roster show/hide
2020-01-12 22:02:32 +01:00
Michael Vetter
33fca40b58
Merge pull request #1248 from svensp/master
...
OMEMO message keys allow prekey="1" alongside prekey="true"
2020-01-05 18:56:35 +01:00
Michael Vetter
be13e98fe7
Update my Copyright to 2020
2020-01-03 19:52:31 +01:00
Sven Speckmaier
5ccd04c91b
omemo: Check for 1
alongside true
in an omemo encrypted message stanza
...
prekey is defined as `<xs:attribute name="prekey" type="xs:boolean"/>`
which allows both `true` and `1` as truthy values.
Not checking for `1` breaks omemo encryption when interacting with
clients which set prekey="1", example: psi+ 1.4.983
Regards https://github.com/profanity-im/profanity/issues/1247
2020-01-03 10:39:40 +01:00
Michael Vetter
5d7f2d1516
Add comments to avatar.c
...
And use better function names.
2019-12-23 20:56:38 +01:00
Michael Vetter
92c8366880
Dont kill *.char preferences if theme doesnt contain it
...
So far `/occupants char *`, `/roster contact char *`, `/roster room char #`,
`/roster header char -`, `/occupants header char -` was saved and
loaded from the preferences.
But was overwritten when the theme was loaded. If the theme didn't set
these values the value was just cleared. Despite that it might have been
set in the users preferences.
Funny enough the themes don't operate generally like this.
For example `otr.char` is not cleared.
This is again due to our borked theme/prefs concept
(https://github.com/profanity-im/profanity/issues/1077 ).
For now let's just use the one set from the preferences if it's set. The
theme will however overwrite it if it is set there.
Fix https://github.com/profanity-im/profanity/issues/1244
2019-12-20 10:45:25 +01:00
Michael Vetter
e904b000ad
Make /roster color
configurable when offline
2019-12-20 10:07:44 +01:00
Michael Vetter
abd8e3d6c5
Adjust /color configuration output
...
Fix https://github.com/profanity-im/profanity/issues/1243
2019-12-20 10:05:58 +01:00
Michael Vetter
fdd6897eee
Add workaround for stupid compiler warning
...
Makes travis builds for TW, Debian and Arch fail.
2019-12-19 20:38:05 +01:00
Michael Vetter
5170a2d542
Add string.h to avatars.c
...
Regards https://github.com/profanity-im/profanity/issues/1241
2019-12-19 20:04:19 +01:00
Michael Vetter
1f809e5210
Refactor _cmd_set_boolean_preference
...
Only compute string if necessary.
2019-12-19 19:25:58 +01:00
Michael Vetter
808850c6f5
Add /occupants color command
...
`/occupants color on|off` to enable or disable XEP-0392 also for the
MUC occupants.
Regards
https://github.com/profanity-im/profanity/issues/1191
2019-12-19 19:14:59 +01:00
Michael Vetter
6d82020a66
Merge branch 'master' of https://github.com/profanity-im/profanity
2019-12-19 18:54:27 +01:00