Anthony Bilinski
746314baf2
fix(history): move stuck action messages to broken_messages table
...
Before a bug in qTox would make it possible for a user to try to send an empty
action type message. This would fail to send at toxcore, but still be persisted
in history, causing it to fail every time FauxOfflineEngine tried to resend
it. Moving these stuck messages into the broke_messages table will stop qTox
from attempting to deliver them on each connect, and display in the GUI to
users that the messages aren't really pending anymore.
2019-10-20 02:35:20 -07:00
Anthony Bilinski
b28dc30061
fix(history): move stuck pending message into broken_messages table
...
Fix #5776
Due to a long standing bug, faux offline message have been able to become stuck
going back years. Because of recent fixes to history loading, faux offline
messages will correctly all be sent on connection, but this causes an issue of
long stuck messages suddenly being delivered to a friend, out of context,
creating a confusing interaction. To work around this, this upgrade moves any
faux offline messages in a chat that are older than the last successfully
delivered message, indicating they were stuck, to a new table,
`broken_messages`, preventing them from ever being sent in the future.
2019-10-20 02:34:47 -07:00
Anthony Bilinski
f72f3f714d
fix(history): handle errors during db upgrade
2019-10-20 02:34:47 -07:00
Anthony Bilinski
dacfcdadac
refactor(history): apply db schema upgrade one version at a time
...
This allows upgrade steps to query the db at the last version and run C++ code
on the results, then do a single transaction to make the upgrade, instead of
all actions of each upgrade step being required to be part of the overall
upgrade transaction.
2019-10-20 02:34:47 -07:00
Anthony Bilinski
996b17b1d1
refactor(test): allow generic schema creation and verification in for db schema
2019-10-20 02:34:47 -07:00
Jimi Huotari
489d07c0eb
refactor(Qt): use 'QLatin1String' instead of 'QLatin1Literal' part 2
...
This is required when building against Qt 5.14.
2019-10-09 23:19:27 -07:00
Jimi Huotari
7f74d41586
refactor(Qt): use 'QLatin1String' instead of 'QLatin1Literal'
...
This is an undocumented Qt 2/3/4 remnant, deprecated in Qt 5.14.
- https://code.qt.io/cgit/qt/qtbase.git/commit/?h=5.14&id=3e75c296
- https://code.qt.io/cgit/qt/qtbase.git/commit/?h=5.14&id=45373c19
2019-10-09 23:19:26 -07:00
sudden6
2ce00afcbb
test: add regression test for #2119
...
Also modify the test to test highlighting via public key
2019-08-26 23:22:43 -07:00
jenli669
34e1e25b7f
fix(test): include <set> in groupmessagedispatcher_test.cpp
2019-07-15 10:26:50 +02:00
sudden6
79c88f2154
Merge pull request #5722
...
jenli669 (2):
docs(copyright): update and add copyright info
docs(copyright): Added copyright to apparmor .qtox files
2019-06-28 09:00:13 +02:00
jenli669
04a9bc46f4
docs(copyright): update and add copyright info
...
zealously updates and adds qTox copyright information.
Fixes #5713
2019-06-28 01:18:26 +02:00
Anthony Bilinski
819016960d
fix(ci): increase bsu_test timeout
...
for slow nodes server causing sporadic failures
2019-06-27 00:37:09 -07:00
Mick Sayson
71f8220925
refactor(chatlog): Add class to manage underlying chatlog state
2019-06-21 11:01:35 -07:00
Mick Sayson
f0d840002a
refactor(messages): Create class to manage sending/receiving group messages from core
2019-06-21 11:01:10 -07:00
Mick Sayson
22a4c38bfd
refactor(messages): Create class to manage sending/receiving friend messages from core
2019-06-21 11:01:10 -07:00
Mick Sayson
e5016337bb
refactor(offlinemsg): Decouple OfflineMsgEngine from other components
2019-05-26 15:33:51 -07:00
Anthony Bilinski
316893ace9
test(db): add db schema upgrade test
2019-05-15 13:26:21 -07:00
Anthony Bilinski
97d05f9d67
refactor(id): make ContactId interface, implement GroupId
...
Precursor for group history, friend blocking
2019-04-13 12:58:25 -07:00
Patrick
9d2a8a3af6
test(core): Implement recommended changes
2019-03-17 13:52:42 +01:00
Patrick
e3a02b6ccb
test(core): Added test for startup with invalid proxy
2019-03-17 13:52:42 +01:00
Patrick
cf32ccfa0e
test(core): Add test cases for core, initial
2019-03-17 13:52:42 +01:00
sudden6
1f2bdf3a1b
feat: load bootstrap nodes directly from JSON
...
This allows us to easily update the list of bootstrap nodes.
2019-03-01 10:39:24 +01:00
sudden6
793d744705
test: add simple testcase for BoostrapNodeUpdater
...
This test just tries to connect to nodes.tox.chat and retrieve nodes.
The result is not checked yet.
2018-11-19 17:16:23 +01:00
sudden6
55c361eb71
test(paths): add tests for paths module
2018-11-14 11:02:20 +01:00
Patrick
ad6d60d1ab
test(toxstring): Add test cases for toxstring.h
2018-10-07 13:51:33 +02:00
iphydf
52a5951d26
chore: Use nullptr
instead of 0
for NULL pointer constants.
2018-09-07 21:38:59 +00:00
Anthony Bilinski
5dc4e6de81
chore(legal): update copyright date to 2018 for all source files
2018-04-25 17:33:38 -07:00
Anthony Bilinski
e564b85e3c
fix(chatform): Broaden URL matching to include unicode
...
Fix #4853
Fix #4295
*Instead of searching strictly valid URIs, allow anything characters following scheme. This allows for UTF-8 characters used in other languages, as well as parentheses and other ASCII characters. This will over-match some invalid URLs.
*Ignored surrounding characters of URIs and ending punctuation
*Fix www-only links by adding http scheme to href
2018-02-25 01:48:25 -08:00
noavarice
de108ce834
refactor: allow newline|space to appear after multiline code seq
...
Also added tests
2017-11-03 21:00:09 +03:00
noavarice
acff6e0450
test: removed debug messages
2017-11-03 21:00:09 +03:00
noavarice
3faa0ecaad
test: added test for multiline code
2017-11-03 21:00:09 +03:00
noavarice
e80a2bcc69
test: added tests for IPv6 format
2017-11-03 21:00:09 +03:00
noavarice
5a569ea467
test: re-made test for URL highlighting
...
Also one test was removed. Answering sudden6's question, this test will
not pass after merging current pull request (if it will)
2017-11-03 21:00:09 +03:00
noavarice
40c4f431dd
refactor: removed unnecessary functions and test depending on them
2017-11-03 21:00:09 +03:00
noavarice
d302e261d4
test: updated tests for text formatting
...
Updated test data, changed additional functions and reimplemented test
slots
2017-11-03 21:00:09 +03:00
noavarice
a9eca8e626
refactor: removed TextFormatter instantiations from tests
2017-11-03 21:00:08 +03:00
Diadlo
7c74491226
fix(test): If json string not quoted is server error
2017-10-31 17:51:26 +03:00
Diadlo
d3babb3fbe
test(toxmedata): Add test for toxmedata class
2017-10-13 14:56:15 +03:00
Diadlo
42c4a74826
test: Add tests for PosixSignalNotifier
2017-10-11 14:50:09 +03:00
Diadlo
b8ae494ef3
test: Replace check on Qtest
2017-06-04 23:10:50 +03:00
sudden6
a3b234e6dd
chore(formatting): run clang-format
2017-06-01 09:50:59 +02:00
Yuri
e597d391fc
fix(includes): Added missing #include <ctime>
...
time(3) requires this include. Found when qTox failed to build on the FreeBSD due to the missing include.
2017-04-11 00:04:48 -07:00
noavarice
d34ac1e396
test: added case for multiple URL's in one message
2017-03-22 14:10:23 +03:00
noavarice
54ae5c006d
test: added tests for all types of markdown symbols in URL
2017-03-12 23:14:44 +03:00
noavarice
e9fb073753
test: added test on URL highlighting in text messages
2017-03-06 11:55:54 +03:00
Zetok Zalbavar
80f5de31b3
style: reformat current C++ codebase using clang-format
2017-02-26 11:52:45 +00:00
noavarice
87f219a78f
refactor: message text formatting works better now
...
- tag intersection detected
- variables and constants' names became shorter
2017-02-19 23:53:11 +03:00
noavarice
445ba28e7b
test: Added test for TextFormatter class
...
It's a first simple version
2017-02-19 17:46:52 +03:00
Diadlo
f5c0d61ae6
feat(toxpk): Add 'ToxPk::getPkSize()' method
2017-02-07 20:10:44 +03:00
Diadlo
d351f9e5ec
test(toxpk): Add TestPk and TestId tests
2017-02-07 20:10:44 +03:00
Diadlo
0d56fb946d
chore(cmake): Add unit_test build
2017-02-07 20:10:44 +03:00