Commit graph

110 commits

Author SHA1 Message Date
Arnaud Vergnet
a2be9c26dd Fix ui freeze on file open 2021-01-06 10:44:21 +01:00
5f0d2ea7b1 Fix file not being sent 2021-01-06 10:43:42 +01:00
Arnaud Vergnet
43ccfe5901 remove unused file 2021-01-06 10:05:36 +01:00
ad48bfa05f Add support for file 2021-01-06 09:56:12 +01:00
Arnaud Vergnet
97c0d34159 Fix message duplicates on history load 2021-01-06 09:17:47 +01:00
Arnaud Vergnet
46cf6f40aa Fix chat history sql query 2021-01-06 09:05:52 +01:00
Arnaud Vergnet
63cb83916a Simplify user connection
Extracted handshake phase into separate class.
2021-01-06 08:28:21 +01:00
Arnaud Vergnet
fcb678f4fe use unique ID instead of ip 2021-01-05 22:00:30 +01:00
1ab27f4f87 make DatabaseController async 2021-01-05 15:34:24 +01:00
Arnaud Vergnet
6d3971be40 Improve UI doc and fix minor UI bugs 2021-01-05 10:37:41 +01:00
Arnaud Vergnet
a3873394be improve database compatibility with UI 2021-01-04 20:51:05 +01:00
3d6d1b7a15 Convert all PreparedStatement to regular Statements
PreparedStatement are not that useful for our use case, but add a lot of complexity
2021-01-04 19:11:31 +01:00
Arnaud Vergnet
2099b78233 Connect ui to db 2021-01-04 10:33:39 +01:00
Arnaud Vergnet
c2f53e89ec cleaned up database controller 2021-01-04 09:01:43 +01:00
Arnaud Vergnet
08b916c5c5 prevent names longer than 16 chars 2021-01-03 18:40:07 +01:00
Arnaud Vergnet
1e5383a332 only use dialog delay for errors 2021-01-03 18:34:59 +01:00
Arnaud Vergnet
e5c518d078 allow sending username taken message 2021-01-03 18:30:59 +01:00
Arnaud Vergnet
030e9b3b0a add username change and check for duplicates 2021-01-03 18:19:02 +01:00
Arnaud Vergnet
060137115f prevent sending empty messages 2021-01-03 13:54:45 +01:00
Arnaud Vergnet
e04b780397 fix javafx thread errors and improve chat performance 2021-01-03 13:46:46 +01:00
e7a77a8670 Minor fix in logs 2020-12-20 01:05:11 +01:00
d24550fd63 Use another DB for testing 2020-12-20 00:56:02 +01:00
34255a98e8 Implement and test DatabaseController functions 2020-12-18 15:06:11 +01:00
Arnaud Vergnet
aed165108c Fix message duplication with multiple users 2020-12-18 11:07:51 +01:00
Arnaud Vergnet
73bf24fa81 add message timestamp 2020-12-18 10:47:29 +01:00
Arnaud Vergnet
c4b2b55887 Fix self discovery
Check address on broadcast reception and use only ipv4
2020-12-18 10:25:26 +01:00
Arnaud Vergnet
3b9f4f0a41 Fix error on msg receive with chat closed 2020-12-16 18:27:37 +01:00
Arnaud Vergnet
81673e44b3 Fix username not updating on user list 2020-12-16 18:21:09 +01:00
Arnaud Vergnet
7075c9e0b6 Fix user duplication on new session start 2020-12-16 18:20:56 +01:00
Arnaud Vergnet
1fe1681d8b improve username change detection 2020-12-16 18:08:09 +01:00
Arnaud Vergnet
75ec382fb7 improve user disconnection detection 2020-12-16 18:00:03 +01:00
Arnaud Vergnet
f762128922 fix thread error 2020-12-16 17:45:31 +01:00
Arnaud Vergnet
e6ab61a49c improve new user detection 2020-12-16 17:45:22 +01:00
Arnaud Vergnet
ea311fbecb stop tcp listening before app close 2020-12-16 17:13:42 +01:00
Arnaud Vergnet
c13b589054 improve username setting flow 2020-12-16 17:12:04 +01:00
Arnaud Vergnet
5cf0279279 Merge remote-tracking branch 'origin/master' 2020-12-16 12:26:48 +01:00
Arnaud Vergnet
362f5fa2f8 fix tcp message receiving 2020-12-16 12:26:43 +01:00
206003080a Add logs when user change state 2020-12-16 12:21:50 +01:00
Arnaud Vergnet
1d3e56e9b7 Start listening for tcp connections 2020-12-16 12:07:56 +01:00
Arnaud Vergnet
5d85a6061a Make ip to id function static 2020-12-16 12:07:26 +01:00
Arnaud Vergnet
46565951e8 remove logs 2020-12-16 12:06:29 +01:00
c50a2fb251 Merge remote-tracking branch 'origin/master' 2020-12-16 11:51:42 +01:00
965cfdbf19 Handle user connection and disconnection 2020-12-16 11:51:31 +01:00
Arnaud Vergnet
a854333c01 remove unused class 2020-12-16 11:45:59 +01:00
Arnaud Vergnet
a11428569a remove unused getters 2020-12-16 11:45:35 +01:00
Arnaud Vergnet
6f6492e8c0 connect ui to message sending methods 2020-12-16 11:35:20 +01:00
Arnaud Vergnet
6f1bd41cc9 remove old observer before changing user 2020-12-16 11:13:04 +01:00
Arnaud Vergnet
f544711bfb update indicator on user state change 2020-12-16 11:08:43 +01:00
Arnaud Vergnet
312bbaa5a6 add debug logging 2020-12-16 10:46:48 +01:00
Arnaud Vergnet
e7dd395d29 improve log class 2020-12-16 09:56:22 +01:00