Commit graph

19 commits

Author SHA1 Message Date
Jonathan Barrow
8432cfd6d5
feat: update to latest NEX libs 2025-02-15 23:31:32 -05:00
Daniel López Guimaraes
ab80949173
fix(3ds): Send friendship notification to proper target
The sender PID of the notification was being set to the target PID,
instead of the sender PID. Use correct PID and remove redundant target
PID argument.

Also fix minor accuracy issues.
2024-05-20 21:48:10 +01:00
Jonathan Barrow
7bc3dbf4f1
fix: use Copy() on presence data to get around race condition 2024-05-16 07:43:26 -04:00
Jonathan Barrow
18e1a0fefa
chore: migrate ConnectedUser map to MutexMap 2024-04-09 12:21:50 -04:00
Jonathan Barrow
4d299a3612
rewrite: Migrate to v2 libraries and small bug fixes 2024-04-08 08:53:39 -04:00
Daniel López Guimaraes
b5d34d8db4
Update RMC method creation 2023-12-16 16:09:47 +00:00
Jonathan Barrow
90a71d2ca2
updated to new stream functions 2023-11-18 15:25:50 -05:00
Daniel López Guimaraes
7281dd5a52
Replace slices.Contains to Equals check
We can't use slices.Contains anymore since now we are comparing
pointers, and the check would always return false. Replace with using
the Equals function.
2023-11-17 19:22:08 +00:00
Jonathan Barrow
abb19ddf43
make 3DS friends display as online again 2023-11-16 16:24:06 -05:00
Jonathan Barrow
de11455a1b
use new PID, DateTime and method returns 2023-11-14 22:47:52 -05:00
Jonathan Barrow
cb82df0e20
use new PID type 2023-11-13 01:22:34 -05:00
Jonathan Barrow
91b13c31a4
work with new nex-go 2023-11-12 06:48:13 -05:00
Daniel López Guimaraes
2d1e087fac
Replace stubs with NotImplemented 2023-08-13 23:28:44 +01:00
Daniel López Guimaraes
8d8a05a7e2
Add missing error handling
Now database getters do error handling aswell, and in case of any error,
the NEX or GRPC method throws a proper error about it.

There are still some doubts on how to handle errors when a list of data
is processed, so for now skip that element on the list and continue.

Also add some constant errors to do better error handling.
2023-08-13 23:19:34 +01:00
Daniel López Guimaraes
2f80336681
Rename friends-secure to friends and remove Mongo
Replace MongoDB usage with GRPC calls to the account server. Also
include documentation on the README and a Makefile.
2023-08-13 01:05:08 +01:00
Daniel López Guimaraes
3d5e78f532
Improve error handling
Now that we can return errors to nex-protocols-go and it will handle it,
we can improve how errors are being handled in friends.

There's probably room for improvement from this, since I haven't added
error handling on some database getters due to uncertainties on whether
the error should interrupt an action or not.
2023-08-12 23:53:21 +01:00
SuperMarioDaBom
1b43935ea6 Update to latest version of libraries 2023-07-16 21:19:30 -07:00
Jonathan Barrow
4587a217f9
Added missing nil checks to ConnectedUsers and add missing users 2023-06-12 21:01:57 -04:00
Jonathan Barrow
2cce4a7af4
Updated to latest NEX libs 2023-04-08 10:44:51 -04:00