Commit Graph

99 Commits

Author SHA1 Message Date
ChronosX88
9a1400709b
refactor: Some backend-interface universalization 2019-09-05 23:00:22 +04:00
ChronosX88
cb76704a5e
[WIP] test: Add template test function to GetEventsSince 2019-08-30 19:03:37 +04:00
nxshock
3c61d0344f Add createRoom handler 2019-08-29 21:05:40 +05:00
ChronosX88
32a1556de1
fix: RoomEvent methods now use the pointer to the self 2019-08-18 18:40:10 +04:00
ChronosX88
53372cc1c1
[WIP] fix: Add check to empty since token (/sync) 2019-08-18 14:57:13 +04:00
ChronosX88
b911c7e351
feat: Move event storage to BuntDB 2019-08-18 14:56:16 +04:00
ChronosX88
e009c054cb
feat: Start implementing Sync method (WIP) 2019-08-17 12:42:56 +04:00
ChronosX88
c694841cb1
refactor: Add function which builds SyncReply model 2019-08-13 18:57:06 +04:00
nxshock
585ccbc332 Move Sync method to user method 2019-08-11 18:53:18 +05:00
nxshock
d3f90c8eda Replace reflection to type assertion 2019-08-11 18:47:25 +05:00
nxshock
197b296a24 Events rework
Now Event is an interface. Moved all events stuff to separate events module.
2019-08-10 12:48:55 +05:00
nxshock
18566511c9 Remove duplicated code 2019-08-10 10:50:50 +05:00
nxshock
cb452bbd98 Fix root type path 2019-08-10 10:48:35 +05:00
nxshock
f7eb4f7e28 Move event types to common 2019-08-10 10:47:09 +05:00
nxshock
33bb47bda8 Fix backend GetEventsSince interface func 2019-08-09 23:06:37 +05:00
ChronosX88
cab885edd8
feat: Add basic GetEventsSince method for backend 2019-08-09 21:02:33 +04:00
nxshock
f119046d58 Add Event.Content types for message events 2019-08-09 19:52:13 +05:00
nxshock
533cdf1621 Add room aliases method test 2019-08-08 20:21:34 +05:00
nxshock
e51ff105e7 Fix room aliases
Aliases must return pure name
2019-08-08 20:21:22 +05:00
nxshock
eed68b37fe Fix SendMessage mutex infinity lock 2019-08-08 20:04:53 +05:00
nxshock
4fc26f127e Fix SetTopic mutex infinity lock 2019-08-08 20:02:46 +05:00
nxshock
f8c6a259e2 Fix nil events field 2019-08-08 20:01:55 +05:00
nxshock
3bbb8b19a8 Fix room aliases 2019-08-08 19:38:30 +05:00
nxshock
a2869ebf85 Switch mutex RLock to Lock for RW method 2019-08-07 19:33:10 +05:00
nxshock
20fea5c1dd Remove wront assertion after event rework 2019-08-07 19:16:40 +05:00
ChronosX88
b7aff5cac6
Merge branch 'master' into refactor/eventCol 2019-08-07 13:11:51 +04:00
ChronosX88
57a2beceb2
refactor: Make events as one collection in Backend 2019-08-07 13:07:11 +04:00
nxshock
4de7078f42 Add implementation of room alias methods 2019-08-06 20:28:39 +05:00
nxshock
febdc5f31f Add test case for short username 2019-08-06 18:59:28 +05:00
nxshock
91b28d2dc1 Make coomon.Filter synonym of filter request 2019-08-05 20:06:46 +05:00
nxshock
330f362e54 Rework filter methods 2019-08-05 19:39:28 +05:00
ChronosX88
6dba957e5f
fix: Fix bug with filter adding 2019-08-05 14:13:37 +04:00
ChronosX88
501c7b0795
feat: Add Filter API [WIP] 2019-08-04 20:46:31 +04:00
nxshock
a513e35953 Start implementation of Invite method 2019-08-04 13:47:58 +05:00
nxshock
3185bda38e Switch backend mutex to RW mutex 2019-08-03 22:45:08 +05:00
nxshock
1e87bcac8b Fix TestPublicRooms 2019-08-03 22:39:35 +05:00
nxshock
d47457a67c Add basic implementation of Post publicRooms method 2019-08-03 19:47:33 +05:00
nxshock
713fc3cb02 Update imports 2019-08-03 19:19:18 +05:00
nxshock
da35c59aaa Fix basic regexp for username validation 2019-08-03 18:54:58 +05:00
nxshock
1816362e9a Add simple username validation 2019-08-03 12:54:32 +05:00
nxshock
4793970e87 Add room state test 2019-08-03 11:59:52 +05:00
nxshock
87144ee37d Make models.ApiError interface, not struct 2019-08-03 11:46:57 +05:00
nxshock
a2ebc64065 Add publicrooms method test 2019-08-02 23:11:32 +05:00
nxshock
782c328e3d Add basic implementation of PublicRooms method 2019-08-02 22:55:35 +05:00
nxshock
823ab7e100 Add filling of room state field on room creation 2019-08-02 21:48:48 +05:00
nxshock
e293cd0255 Implement room state field 2019-08-02 21:46:46 +05:00
nxshock
11097f763c Add register.available method 2019-08-02 18:17:18 +05:00
nxshock
2cffa574fa Implement leaving room method 2019-08-01 19:29:43 +05:00
nxshock
490bd56e2d Add test GetRoomByID with wrong id 2019-07-31 21:42:43 +05:00
nxshock
cf9fade28e Make Register method uses Login method 2019-07-31 20:53:36 +05:00