Commit Graph

20 Commits

Author SHA1 Message Date
Gergely Polonkai 5bc80a215f Update Matrix.API to comply with the current spec 2017-11-28 18:14:17 +01:00
Gergely Polonkai 5fedf09f76 Define polling-started and polling-stopped signals
Client.sync() invokes them when polling is started or stopped for any
reason.

Signed-off-by: Gergely Polonkai <gergely@polonkai.eu>
2016-03-21 15:48:31 +01:00
Gergely Polonkai 6ab67b44be Do a token_refresh if forbidden(ish) error received 2016-03-21 10:45:27 +00:00
Gergely Polonkai 33bb63e4f1 Add debug output to state load/save 2016-03-20 18:46:59 +00:00
Gergely Polonkai 4ce4ae4641 Add save_state() and load_state() to Client 2016-03-20 12:39:46 +00:00
Gergely Polonkai 734a8349d0 Add the Client.send() method 2016-03-19 08:12:13 +01:00
Gergely Polonkai 4db2d5ebf2 Update power levels in Matrix.Room objects when a m.room.power_levels event arrives 2016-03-18 16:58:49 +01:00
Gergely Polonkai 3dd3568384 Add per-room profile caching 2016-03-18 11:59:57 +01:00
Gergely Polonkai 15d1896669 Refactor event type checking in HTTP client
Instead of evt.get_type().is_a(typeof(…)) we now use evt is …
2016-03-18 11:59:32 +01:00
Gergely Polonkai 3ddac22f78 Add Client.get_room_by_alias 2016-03-18 11:17:04 +01:00
Gergely Polonkai c8f815c542 Add Client.get_room_by_id() 2016-03-17 17:16:51 +01:00
Gergely Polonkai 9f236de0b9 Fix return value type of Client.get_user_presence() 2016-03-17 17:03:17 +01:00
Gergely Polonkai ee9e27f8d2 Start caching room data 2016-03-17 10:04:48 +00:00
Gergely Polonkai fcc592b072 Fix state and room events
* State event descended from Event, but it is actually based on Room
* Room events may have a missing room_id property due to HS
* optimization
2016-03-16 17:13:05 +01:00
Gergely Polonkai 62eb4e7e21 Add get_user_presence() and get_user_profile() to Client 2016-03-14 23:09:09 +00:00
Gergely Polonkai 70dfaff080 Move Event types to the Matrix.Event namespace 2016-03-07 16:38:19 +01:00
Gergely Polonkai f37d90e468 Wrap debug messages in Config.DEBUG checks 2016-03-05 07:36:07 +00:00
Gergely Polonkai 50e8d7cd92 Move HTTPClient to the /sync API
The /events API is deprecated according to the Spec.
2016-03-04 14:34:58 +01:00
Gergely Polonkai 6a543fe2c6 Handle all events via MatrixClient::event 2016-03-04 14:22:25 +01:00
Gergely Polonkai cf8bed1c40 Rework MatrixHTTPClient in Vala 2016-03-04 14:00:06 +01:00