Adam Porter
2c57001118
Tidy: Docstrings
2021-07-21 14:27:04 -05:00
Adam Porter
dc2afc253d
Add/Change: ement-room-defevent, and handle typing ephemeral events
2021-07-21 14:23:45 -05:00
Adam Porter
97f75535fd
Change: Track room buffers in local slot
2021-07-21 14:11:52 -05:00
Adam Porter
37d3ea8202
Change: Hide progress reporter when unnecessary
2021-07-21 14:03:52 -05:00
Adam Porter
d76d3d713a
Change: Hide more sync-related messages
2021-07-21 12:35:47 -05:00
Adam Porter
3e5858dde7
Change: (ement--sync-callback) Don't message when auto-syncing
...
Unless it's the initial sync.
2021-07-21 11:35:16 -05:00
Adam Porter
784d8c30d8
Add/Fix: (ement-room--insert-events) Insert ts headers for new events
2021-07-21 09:20:55 -05:00
Adam Porter
387e55d39b
Comment: Remove obsolete FIXMEs
2021-07-17 10:18:34 -05:00
Adam Porter
3e90becec5
Change: (ement-auto-sync) Enable by default
...
AFAIK it works fine, and this is what users will expect.
2021-07-17 10:16:16 -05:00
Adam Porter
82e0f20669
Change/Fix: (ement--write-session) Clear unnecessary slots
...
I found that some ement-user structs were not being read properly (and
who knows why--tracing that down may be tedious), which caused errors
when rooms were displayed after loading the session, so for now we'll
just clear these slots. This means that the first sync will be an
initial sync, so we aren't persisting the whole session. That may not
be ideal, but it's much simpler and avoids a whole lot of potential
bugs, too.
2021-07-17 10:08:45 -05:00
Adam Porter
ae759fb041
Change/Fix: (ement-api) Use :noquery for plz requests
...
This requires a just-pushed change to plz.el.
2021-07-17 09:50:29 -05:00
Adam Porter
d0d6898a0a
Change: Save session struct
...
This seems to work correctly, but it wouldn't surprise me if some
unreadable types accidentally end up in the data and cause a read
error at some point (which this tries to account for). If so, those
types should be omitted from the saved session struct.
Also, this effectively saves all room events locally, which means they
will accumulate over time. This is probably undesirable, and some
kind of limiting or filtering should be implemented.
2021-07-17 09:37:16 -05:00
Adam Porter
e5c25307b2
Add/Change: Use .well-known server URI when available
...
Fixes #2 . Thanks to Daniel Pérez (@0xSteeW) for reporting.
2021-07-17 08:19:12 -05:00
Adam Porter
faab3c7316
Change/Fix: (ement-connect) User ID format
...
Fixes #3 . Thanks to @defaultxr for reporting.
2021-07-17 07:24:06 -05:00
Adam Porter
47b2870f97
Change/Fix: (ement-save-session-file) Use own token file
...
Stop using same file as matrix-client.el uses.
2021-07-17 07:14:24 -05:00
Adam Porter
02567eec7e
Add: (ement-connect) Check supported login flows
2021-07-17 06:46:59 -05:00
Adam Porter
ef63676430
Fix: (ement--login-callback) Do initial sync
...
A silly oversight.
Fixes #4 . Thanks to @mekeor for reporting.
2021-07-17 06:44:58 -05:00
Adam Porter
c115f7e6fc
Change/Fix: (--room-display-name) Also check timeline events
...
Despite what the spec seems to say, in practice some rooms seem to
have m.room.name events only in their timeline events rather than their
state events. (Maybe this depends on room state, recent events, etc.)
So we check both.
Also update the spec URL, because they changed the HTML anchors and
broke the links.
2021-07-04 12:39:00 -05:00
Adam Porter
eafc21a536
Fix: ement-disconnect
...
Actually stop syncing and clear the session.
2020-12-05 19:42:15 -06:00
Adam Porter
d5df450e16
Fix: (--push-joined-room-events) Only set prev-batch on initial sync
2020-12-04 19:18:10 -06:00
Adam Porter
c74cc89a45
Fix: Replace ts requirement
...
Used for ts-human-format-duration in ement-room-list.
2020-12-04 18:12:36 -06:00
Adam Porter
c7d19f38a5
Change: Call ement-list-rooms after login
...
Users can disable this by customizing ement-after-login-hook.
2020-12-04 03:26:50 -06:00
Adam Porter
8df425710a
Change: Improve room-switching commands and binds
2020-12-04 03:08:09 -06:00
Adam Porter
2d1d7bc995
Change: (ement-view-room) Prefix for pop-to-buffer-same-window
2020-12-04 03:02:35 -06:00
Adam Porter
062b362066
Add: Timestamp headers
2020-12-04 02:50:08 -06:00
Adam Porter
9e3c9268d1
Add: Room list
...
And associated changes.
2020-12-03 21:53:11 -06:00
Adam Porter
be579bff19
Fix: Timeout retry/warning
2020-12-03 14:45:00 -06:00
Adam Porter
3444d2e928
Add: Default sync filter (lazy-loading of membership)
...
Seems to work well.
2020-12-02 14:28:17 -06:00
Adam Porter
fe11c4b1a7
Fix: Only show tip on initial sync
2020-12-02 14:28:00 -06:00
Adam Porter
210543b9bd
Fix: (ement-view-room) Go to end of buffer
2020-12-02 14:27:28 -06:00
Adam Porter
2f5bff00a0
Rename variable
2020-12-02 14:23:49 -06:00
Adam Porter
cadc765580
Fix: Use --auto-sync in login hook
2020-12-02 14:23:05 -06:00
Adam Porter
ac3d854b6a
Tidy, rename debug-warn macro
2020-12-01 16:45:40 -06:00
Adam Porter
4cd60d13cb
Add version header
2020-12-01 16:45:17 -06:00
Adam Porter
27362f8760
Tidying, add disconnect command
2020-12-01 15:11:30 -06:00
Adam Porter
1212252175
Improve message
2020-12-01 03:59:34 -06:00
Adam Porter
b766cbf6c5
Tidy
2020-12-01 03:45:56 -06:00
Adam Porter
a115ae0f42
Add autoload
2020-12-01 03:43:42 -06:00
Adam Porter
9b49bd82a2
Login seems to work
2020-12-01 03:32:54 -06:00
Adam Porter
e6f2f4076e
Tidy, etc.
2020-12-01 02:09:20 -06:00
Adam Porter
da436bf39e
Loading earlier messages, etc.
2020-12-01 00:28:13 -06:00
Adam Porter
372979ce1e
Rename function
2020-11-30 21:16:04 -06:00
Adam Porter
f17c1da97c
Tidy
2020-11-30 21:12:55 -06:00
Adam Porter
6ad51df206
Things
2020-11-30 20:00:50 -06:00
Adam Porter
13d6af1bf9
Fixes
2020-11-30 19:36:04 -06:00
Adam Porter
aeb96f482a
Send messages!
2020-11-30 18:19:23 -06:00
Adam Porter
13a0522240
Fixes and stuff
2020-11-30 16:07:20 -06:00
Adam Porter
ad210b70b6
WIP: Updating rooms
2020-11-30 15:42:58 -06:00
Adam Porter
5469240493
Fixes
2020-11-30 15:08:12 -06:00
Adam Porter
2d492fd839
Fixes
2020-11-30 13:45:57 -06:00