When sending to two people (hardcoded on my machine as an ArrayList of IDs 2 and 3), the conversation log only seems to be logging in the ID that is first in the ArrayList). Example with two send messages:
On server:
Recipient id: 2
Adding msg to dumbid1ot's message queue
Successfully added message to dumbid1ot's message queue
Recipient id: 3
Adding msg to caleb's message queue
Successfully added message to caleb's message queue
Forwarded message received by server.
Recipient id: 2
Adding msg to dumbid1ot's message queue
Successfully added message to dumbid1ot's message queue
Recipient id: 3
Adding msg to caleb's message queue
Successfully added message to caleb's message queue
Logging out client at 127.0.0.1
Successfully logged out client 127.0.0.1
On conversation_log.txt:
Timestamp: Fri Apr 26 18:03:26 PDT 2024
Sender ID: 0
Recipient ID: 2
Message ID: 453401531
Message: this is a test
Timestamp: Fri Apr 26 18:03:34 PDT 2024
Sender ID: 0
Recipient ID: 2
Message ID: 1392363860
Message: are you okay?
I have made some changes to it on my previous PR but it wasn't merged because of some conflict. I think that might fix the issue. However i will look into it again.
When sending to two people (hardcoded on my machine as an ArrayList of IDs 2 and 3), the conversation log only seems to be logging in the ID that is first in the ArrayList). Example with two send messages:
On server: Recipient id: 2 Adding msg to dumbid1ot's message queue Successfully added message to dumbid1ot's message queue Recipient id: 3 Adding msg to caleb's message queue Successfully added message to caleb's message queue Forwarded message received by server.
Recipient id: 2 Adding msg to dumbid1ot's message queue Successfully added message to dumbid1ot's message queue Recipient id: 3 Adding msg to caleb's message queue Successfully added message to caleb's message queue Logging out client at 127.0.0.1 Successfully logged out client 127.0.0.1
On conversation_log.txt: Timestamp: Fri Apr 26 18:03:26 PDT 2024 Sender ID: 0 Recipient ID: 2 Message ID: 453401531 Message: this is a test
Timestamp: Fri Apr 26 18:03:34 PDT 2024 Sender ID: 0 Recipient ID: 2 Message ID: 1392363860 Message: are you okay?