Commit Graph

28 Commits

Author SHA1 Message Date
29053b4d36 Apply suggestions from code review 2020-07-24 10:26:31 +02:00
833bb137b5 Integrated the tray icon with the hide on close setting 2020-07-24 09:57:09 +02:00
d030a866dd Notify about messages when out of focus 2020-07-23 19:20:58 +02:00
1d706c14f2 Iconify stage on close, reopen it with the tray icon 2020-07-23 18:53:36 +02:00
2740a1cb10 Make StatusTrayIcon work with JavaFX
* Remove Swing dependencies from StatusTrayIcon
* Pass a stage to the constructor
* Adjust focus change handler and reactivation
* Add IconUtil#loadAWTCompatible for BufferedImage loading
2020-07-20 12:57:34 +02:00
625d64ad5f Fixed bug enabling contact duplication
...when two clients simultaneously add each other to the respective
contact list
2020-07-18 18:20:52 +02:00
97ce9f911d Speed up build, move compiler configuration to parent POM 2020-07-18 13:32:49 +02:00
86abbebe68 Reconfigure Envoy Common Eclipse Project 2020-07-18 10:19:47 +02:00
5452984381 Simplify project names 2020-07-18 10:11:46 +02:00
714892dbd4 Merge branch 'develop' into f/handshake_sync 2020-07-16 22:35:09 +00:00
b5042b2a1f Turn logging off by default (ClientConfig)
Logging is still enabled through the client.properties however, where
console logging is set to FINER.
2020-07-17 00:29:48 +02:00
018fd7a7e1 Fix unread message counter
A bug remains when the total status of a group message is SENT, but the
individual status for the client user is RECEIVED. In this case, the
counter should be incremented but isn't.
2020-07-17 00:27:00 +02:00
81d4e26cc6 Remove filter from ReceivedMessageProcessor, improve handshake
The user is sent after the messages to avoid receiving messages on the
client while switching from handshake to normal mode.
2020-07-16 21:14:37 +02:00
4279c35d3f Update client/src/main/java/envoy/client/ui/controller/GroupCreationScene.java
Co-authored-by: CyB3RC0nN0R <kske@outlook.de>
2020-07-16 20:54:47 +02:00
fa8872ccba Update client/src/main/java/envoy/client/ui/controller/GroupCreationScene.java
Co-authored-by: CyB3RC0nN0R <kske@outlook.de>
2020-07-16 20:54:15 +02:00
a17ce52bfa Fixed Bug not updating MessageStatusChanges 2020-07-16 20:34:24 +02:00
5109605415 Fixed bug not enabling the post-button when an attachment is present 2020-07-16 18:23:06 +02:00
ec700685ac Warned user on group creation if he already has a Group with that name 2020-07-16 17:47:59 +02:00
ae41ab9637 Removed the selected user from ContactSearchScene upon addition 2020-07-16 17:36:57 +02:00
f13dc3f389 Added deepRefresh - mechanism
additionally fixed bug not updating messageList when a
MessageStatusChange occurs (seriously, why did no one notice it before?)
2020-07-16 17:35:15 +02:00
90662b3610 Prepare handshake synchronization
Common
* Replace LocalDateTime with Instant everywhere

Client
* Display message creation date with system time zone in MessageControl
* LocalDB#users now strictly contains Users
* lastSync time stamp in LocalDB (saved per user)
* isOnline parameter in save function (lastSync updated if true)
* lastSync time stamp in LoginCredentials
* No ClientConfig#getLoginCredentials because of missing information,
  moved to LoginScene
* Pass LocalDB#lastSync to LoginCredentials in LoginScene

Server
* Explicit lastSync parameter for
  PersistenceManager#getPending(Group)Messages

This sends the correct time stamp to the server, however the JPQL
queries have yet to be adjusted.
2020-07-16 17:04:35 +02:00
d561461635 Add Generic ListViewFactory 2020-07-13 22:08:08 +02:00
a5a7992a0a Fix FXML naming error 2020-07-13 19:16:48 +02:00
bbe19b1050 Fix FXML formatting 2020-07-13 19:12:03 +02:00
563499e9cf Add ContactListCellFactory
- Refactor chatList to userList in ContactSearchScene and
  GroupCreationScene
- Narrow contact searches down to users on a datamodel basis
- Refactor ContactSearchRequest and ContactSearchResult to
  UserSearchRequest and UserSearchResult
2020-07-13 19:02:40 +02:00
bcb978ce59 Extract ContactControl from ChatControl
The new class ContactControl displays the contact name and status (user)
or member count (group) and is used inside ChatControl, which adds the
unread message count label.
2020-07-13 17:55:00 +02:00
95bb4b7234 Refactor Maven Project Structure
- Convert client/, common/ and server/ to modules
- Add parent pom.xml
- Update templates and workflow
- Remove old documentation
2020-07-13 15:16:22 +02:00
9dac11ecfd Move Envoy Client to client/ subdirectory 2020-07-13 11:37:45 +02:00