1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-16 04:13:02 +01:00
Commit Graph

2051 Commits

Author SHA1 Message Date
jfreegman
e122c5dbca
Use widechars to display strings in the UI
This fixes a bug where printing a bunch of UTF8 chars with glyphs
that have a size > 1 would make the entire chat window disappear.
It also fixes an issue where said UTF8 chars would be truncated
and generally not display correctly.
2022-01-27 15:45:56 -05:00
jfreegman
f6f41a510b
Add some simple impersonation detection on friend requests
This will alert the user when the first six bytes of a new
contact's public key is the same as any other contact in
their list. These 6 bytes are used elsewhere in toxic for
unique identification.

Also did a small refactor regarding the KEY_IDENT_BYTES
define
2022-01-23 11:32:57 -05:00
jfreegman
05dbc626e2
Make sure we check for duplicate paths in pending file transfers list
This fixes a bug where if you receive multiple file transfer
requests simultaneously and they have the same path the files
will overwrite each other
2022-01-17 10:53:34 -05:00
iphydf
ceb175e3f1
chore: Add check that the static build script works.
Otherwise it'll break again in the future and we won't know.
2022-01-13 01:37:24 +00:00
Maxim Biro
4bd1d9bfee
Update libbrotli pc file sed
libbrotli has updated its .pc files since the last sed was written, so
it didn't work anymore, resulting in Toxic build failing. However, the
way they have updated it, it's still broken, so a different sed is
needed.
2022-01-05 15:55:30 -05:00
Maxim Biro
55944aa5a9
Remove broken Docker check
The Docker detection method doesn't work on cgroup v2 systems, so the
script just keeps erroring out.

There doesn't seem to be a simple way to detect that we are running
inside a Docker container, so it makes sense to drop that check
altogether.
2022-01-05 15:52:57 -05:00
Maxim Biro
b71c6a3792
Improve static build script documentation 2022-01-05 15:51:52 -05:00
jfreegman
0239509439
Bump version to 0.11.3 and update toxcore version in static build script 2021-12-24 14:21:26 -05:00
jfreegman
602d9d97c1
Send file control cancel when we block or delete a friend 2021-12-22 14:53:09 -05:00
jfreegman
6f8f6f0ac5
Implement file transfer queue for offline friends
File transfers initiated for offline friends are now
added to a queue and initiated all at once when the friend
appears online.
2021-12-22 14:27:28 -05:00
iphydf
8d58e8f4d6
chore: Fix BUILD format (we check this on toktok-stack now). 2021-12-21 12:23:01 +00:00
jfreegman
b6f892edf5
Remove unnecessary define for keeping track of string array size 2021-12-15 13:39:11 -05:00
jfreegman
f91d10c831
Add missing ifdef 2021-12-13 12:37:51 -05:00
jfreegman
3f18c6f8de
cleanup: fix some uninitialized memory warnings and clarify some logic 2021-12-13 12:33:58 -05:00
jfreegman
bf1e1b73fc
Do proper error handling for a few malloc calls 2021-12-12 11:30:27 -05:00
jfreegman
3eac65036c
Make infer print full error log 2021-12-11 20:13:31 -05:00
iphydf
85f9ec6b9a
chore: Add "infer" static analysis action on CI. 2021-12-11 23:55:29 +00:00
iphydf
5230616a9d
chore: Fix CI: don't install bootstrap daemon. 2021-12-11 23:01:47 +00:00
iphydf
8e0e318df1
chore: Add github CI workflow. 2021-12-11 22:47:54 +00:00
iphydf
701c0e1e94
cleanup: Reduce the amount of "extern" in .c files.
There is no check at all that the types of externs actually match the
type of the definition. This just accidentally was not a problem, but now
the compiler helps a bit in keeping it that way.
2021-12-11 22:35:51 +00:00
iphydf
71f6a8d4d6
cleanup: Avoid casting away constness from pointers. 2021-12-11 22:22:25 +00:00
jfreegman
1cace1e81d
Do exact length check for string passed to tox_pk_string_to_bytes 2021-12-11 17:13:30 -05:00
jfreegman
3030cda47e
Fix possible null dereference
game invite info needs to be set after calloc in case it fails
2021-12-10 13:44:33 -05:00
jfreegman
2946e0dc56
Zero-init coordinates
Not strictly necessary, but makes static analysis happy
2021-12-10 13:09:47 -05:00
iphydf
da90ca8b74
Fix bazel build for games. 2021-12-10 17:52:43 +00:00
jfreegman
17e5cc1147 Merge branch 'toktok' 2021-12-08 14:38:39 -05:00
jfreegman
d02ac24de8
Fix regression causing typing notifications to break
Also a small refactor so we use less duplicate code and reduce mutex usage
2021-12-07 22:14:32 -05:00
jfreegman
66e4c590dc
Fix some lazy/incorrect code in cmd_add()
This fixes a rare but possible scenario where a name@domain lookup that's
longer than a tox id won't work. It also fixes custom messages for domain
lookups
2021-12-07 13:27:38 -05:00
jfreegman
8176b43880
Update static build script
Bump curl and toxcore versions
2021-12-06 11:42:53 -05:00
jfreegman
b88dc9fda1
Bump version to 0.11.2 2021-12-06 11:08:17 -05:00
jfreegman
d7a19791b4
Remove CHANGELOG.md
This hasn't been updated in ages
2021-12-06 10:59:00 -05:00
jfreegman
e2c8497da9
Cleanup code around tox ID/pk conversion functions 2021-12-06 10:46:19 -05:00
jfreegman
afbd185222
/add command no longer requires quotes around the message 2021-12-06 10:06:49 -05:00
iphydf
64794e14cd
chore: Use toktok-stack 0.0.23 for cirrus builds. 2021-12-06 00:40:44 +00:00
jfreegman
e9a0a30408
Some documentation improvements 2021-12-05 17:03:42 -05:00
jfreegman
8aa57b0539
Fix issue with audio VAD threshold
The default VAD was always being set to 0. We now use the
value provided by the config file if defined
2021-12-05 16:36:13 -05:00
jfreegman
7b734f3996
Make tab completion case sensitive 2021-12-04 16:34:15 -05:00
jfreegman
27e20d6f44
Fix possible buffer overrun in python API 2021-11-26 18:57:40 -05:00
iphydf
f39da4d7f2
chore: Add a bazel test that calls toxic with --help.
This way we at least know it doesn't crash on load. Some code runs. We'll
want some real tests at some point, but this ensures *something* works.
2021-11-26 23:57:39 +00:00
iphydf
af70c3d660
chore: Remove travis; add cirrus ci.
We still need a GitHub workflow to test the "make" build. For now, we only
test toktok-stack and the bazel build.
2021-11-26 23:52:39 +00:00
jfreegman
58d0bd0663
Allow empty notes 2021-11-26 09:03:43 -05:00
jfreegman
090fcfffe3
Fix a couple data races 2021-11-26 08:51:38 -05:00
jfreegman
1cba726bb8
Show self connection type and small UI makeover
Connection type is now separated from status in the top status bar
2021-11-25 23:05:33 -05:00
jfreegman
50a074ed22
Remove some unnecessary calls to flag_interface_refresh() 2021-11-21 20:16:02 -05:00
jfreegman
3fddc410b3
Reduce sound notify polling by factor of 10
Polling 100 times per second is excessive. This should help reduce
Toxic's resource usage without a noticable difference to the user.
2021-11-21 14:52:09 -05:00
jfreegman
0a708e4a2e
Make sure conference audio calls are properly flagged
This fixes a bug causing the conference audio noise animations
and indicators from properly displaying
2021-11-20 10:16:47 -05:00
jfreegman
b7002ef3f0
Allow ncurses refresh rate to be set dynamically
This allows us to have a higher refresh rate only when necessary (e.g. games)
2021-11-20 09:49:04 -05:00
jfreegman
1803da85c1
Refactor unread message flagging
This fixes an issue where the interface wasn't able to update
when the unread message flag changed. It also cleans up some
ugly code
2021-11-19 22:54:35 -05:00
jfreegman
f3f81111c8
Greatly reduce redundant window refreshing
This should substantially reduce CPU usage and possibly fix some
issues with interface jittering/flashing
2021-11-19 17:54:35 -05:00
jfreegman
13337041ce
Show friend connection type (UDP/TCP) in friend status bar 2021-11-10 13:27:11 -05:00