53a7530e8a
Some UI improvements
...
- Bottom tab now only shows indices of active chat windows unless focused
- Always focus Home screen on startup instead of the last loaded conference
- Conference tab names are no longer prefixed with the conference number
- Home and Contact tab names are now capitalized
2020-11-19 01:30:30 -05:00
7e1e410307
Refactor logging
...
- Conference logging now behaves the same as 1-on-1 chats: Instead
of creating a new log file every time we restat the client
we use the unique conference ID to keep track of path names.
This also allows us to load history for saved groups on client startup
- Added a log init function / general code refactor.
- Fixed a bug that caused log files to be created even when logging
is disabled.
2020-11-17 16:05:20 -05:00
d75d6e8b60
sort includes
2020-11-14 00:00:05 +00:00
daf794c4a2
Rework audio device handling
...
We now have at most one input and one output device open at any time,
but can have multiple capture callbacks and multiple output sources.
2020-11-14 00:00:01 +00:00
68e1ba312d
Use compound literals to zero out structs instead of memset
...
This is cleaner and much less prone to bugs
2020-11-10 21:25:27 -05:00
71d7d355a6
Use enum to identify window types instead of bool variables
2020-11-09 17:01:22 -05:00
4188b392cc
Rename: groupchats -> conferences
...
This is in line with the toxcore API naming scheme and is in preparation
for the merge with the new groupchat implementation
2020-11-08 10:08:24 -05:00
811fbfbb1e
Fix char -> widechar comparisons
2020-11-08 00:07:28 -05:00
3f02e119f4
add missing malloc error checks and fix widechar to char comparison
2020-11-03 00:59:28 -05:00
1bbd50aac7
Fix a few issues
...
- realloc needs to be error checked
- use correct format specifiers
- make sure optarg and DATA_FILE aren't null before using them
2020-11-02 18:08:54 -05:00
2b43340c90
Convert all variable length arrays to heap allocations
...
VLA's are inherently unsafe so the safest option is to not use them
2020-11-01 11:29:48 -05:00
ff1620c923
fix invalid usage of stderr and incorrect formatting
2020-11-01 11:19:18 -05:00
4c302da503
Fix a bunch of Wformat-truncation warnings due to snprintf() misuse
2020-10-24 14:44:41 -04:00
3015138a5a
Manually attempt to decode input char sequences
...
This is currently a fallback method for when the terminal doesn't
detect ctrl arrow sequences, but it is generalized for future additions
2020-10-13 16:12:55 -04:00
f012007cc4
A couple small fixes
2020-05-19 21:44:35 -04:00
98cb7f58c0
Fix unused parameter and unused result warnings
2020-03-15 14:57:00 -04:00
127f9462e0
make friend add fail if friend is in the block list
2019-11-16 01:55:47 -05:00
b7d67c1d86
re-init AV for unblocked contacts
2018-10-20 02:56:37 -04:00
c4a11f8dc7
Refactor ToxWindows
...
ToxWindow constructor functions now return pointers instead of structs
ToxWindow windows array now holds pointers instead of structs
Refactor some logic in windows.c pertaining to keeping track of active windows
Use uint8_t for window array indexing
2018-10-19 17:43:06 -04:00
d18cc8cbc2
Fix two memory leaks and properly clean up friendlist window
2018-10-19 17:43:03 -04:00
0fea930c24
Convert deprecated uppercase enums to camelcase
2018-10-10 13:34:17 -04:00
a37bf300f9
Update astylerc to match toxcore & reformat all source files
2018-07-18 11:33:16 -04:00
29f55c5277
Update API
...
-Removed usage of deprecated API functions
-Integrated conference changes with a few regressions
2018-02-25 00:00:06 -05:00
fe6a7074ea
Dynamically allocate audio calls structure
...
This fixes a bug that caused a segfault when attempting to call a friend with a
friend number above the MAX_CALLS limit
2017-11-20 07:02:56 -05:00
8508451ba6
avoid unnecessary redrawing
2017-10-29 16:50:42 +01:00
52dd60dc86
Fix potential int truncation and double-check lengths before copy
2017-08-28 19:37:19 -04:00
f056f13329
Astyle everything and add an astyle options script to repo
2016-09-24 21:07:04 -04:00
2194b9e259
Use time_t instead of uint64_t for timestamps
...
Also call time() directly from get_unix_time() instead of manually updating the time val.
2016-09-22 18:31:52 -04:00
cf16849b37
Dynamically allocate memory for save file instead of using stack
2016-05-03 14:13:16 -04:00
e6f839f9ac
Enable multiline input
...
Adds a nonl() call to avoid translation from \r to \n when pressing
enter.
C-J -> \n
Enter -> \r
To allow multiline input, \n chars (e.g. when pressing C-J) are replaced
with a pilcrow. After hitting enter, every pilcrow is substituted with
\n again.
2016-02-28 02:35:36 +01:00
39c4b7ecdd
Add ability to print your Tox ID's QR code to a file
2015-11-08 22:51:46 -05:00
fa0e645a79
Fix a bunch of misc bugs and corner cases
2015-11-08 03:57:01 -05:00
14a8bdb874
Store temp data in same directory as original file
2015-11-07 21:38:32 -05:00
dfff777283
Save data in a safer manner
...
By saving to a temp file then renaming it we avoid the possibility of data corruption
due to an interrupt (hard reboot, power outage etc.)
2015-11-05 17:46:00 -05:00
a5e5e98afc
Disabled video calls for the time being
2015-11-03 23:50:01 +01:00
462cfca175
Merge new AV branch
2015-10-20 17:57:54 -04:00
db410cb01e
Use profile name that conforms with the standard
2015-10-14 23:09:11 -04:00
b4464eda4d
Fix more threading issues
2015-08-27 21:29:34 -04:00
11701d22a1
Lots of bug fixes and general code cleanup
2015-08-27 03:38:08 -04:00
ad04fa4dcd
Major refactoring and fixes towards AV
2015-08-21 00:42:28 -05:00
8301ab1bc2
Revert commit 312d0c3
(localization/gettext)
...
There were serious problems with branch merging that need to be resolved first
2015-08-21 00:35:40 -05:00
0a2ad23c15
Add localization system (gettext)
2015-08-21 00:24:02 -05:00
43bda5f7d9
Refactoring and fix related to invite callback not being fired
2015-08-21 00:14:03 -05:00
f2121fae74
Implemented audio calls using new ToxAV API
2015-08-21 00:14:03 -05:00
3241551cfb
Began conversion of audio code to new ToxAV API
2015-08-21 00:14:03 -05:00
035420e5c7
Revert commit 312d0c3
(localization/gettext)
...
There were serious problems with branch merging that need to be resolved first
2015-07-04 01:19:16 -04:00
85d3c18ba6
Add localization system (gettext)
2015-05-28 15:50:55 +02:00
dd9186e834
re-implement avatar setting
2015-04-04 03:26:38 -04:00
523f205646
re-implement friendlist last seen
2015-04-02 22:19:09 -04:00
eaea68c33e
fix bug where contacts would appear online twice in a row
2015-03-31 18:39:42 -04:00