0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-08-21 00:54:46 +02:00
Commit graph

3683 commits

Author SHA1 Message Date
Jason Volk 27065f2bc2 modules/web_hook: Add m.annotation m.reaction replies to push messages based on status. 2019-12-11 14:09:23 -08:00
Jason Volk 4dd37bccbb modules/web_hook: Add the apropos hash to the content body, unstructured for now. 2019-12-11 14:09:23 -08:00
Jason Volk 25fbf51801 modules/console: Improve feds head diagnostic output detail. 2019-12-10 22:07:51 -08:00
Jason Volk 2ea3cdcc9b modules/console: Fix event refs arg requirement; type reflection lookup. 2019-12-10 11:37:09 -08:00
Jason Volk 12b340c093 ircd:Ⓜ️:room::head: Elaborate the prev_events generating interface; add features. 2019-12-10 11:37:09 -08:00
Jason Volk 35d3e71020 modules/client/sync: Fix timeout rel/abs regression. 2019-12-05 10:30:50 -08:00
Jason Volk 6a6f31315b modules/m_vm_fetch: Fix field name. 2019-12-03 20:32:00 -08:00
Jason Volk 03e6a8a867 modules/m_vm_fetch: Fix missing param in debuglog msg. 2019-12-03 20:24:11 -08:00
Jason Volk 6b69e240d8 modules/console: Toggle DWARNING/DERROR to match DEBUG in release-mode compilations. 2019-12-03 16:42:14 -08:00
Jason Volk 6acc0ba4cb modules/console: Allow toggle of ircd::debug in any compilation. 2019-12-03 16:34:07 -08:00
Jason Volk df79d61395 ircd::util: Elide std::function overhead for util::unwind suite. 2019-12-03 13:39:49 -08:00
Jason Volk a8c6d63b37 modules/client/sync/rooms/state: Add conf item for lazyload; adjust related. 2019-12-03 11:50:16 -08:00
Jason Volk 745172de1f modules/client/versions: Add a static string listing; add more versions. 2019-12-03 11:39:31 -08:00
Jason Volk 4ca71e21cc modules/console: Increase db cache table hits columns width. 2019-11-30 10:52:51 -08:00
Jason Volk 9bb4936625 modules/client: Minor upgrades to std::clamp/std::minmax templates. 2019-10-10 13:35:02 -07:00
Jason Volk 5c2ce1f20c modules/console: Add for clarity. 2019-10-10 13:08:25 -07:00
Jason Volk c0fc0a1cad ircd::prof: Add interface to pressure stall information on linux platforms. 2019-10-08 19:30:48 -07:00
Jason Volk 736f8c6ad0 modules/web_hook: Remove quotes around committer name in push handler. 2019-10-08 13:33:03 -07:00
Jason Volk aa24c43137 modules/web_hook: Embolden the ref name on create/delete events. 2019-10-08 13:31:14 -07:00
Jason Volk fb15e8c30b modules/web_hook: Support github create event. 2019-10-08 13:26:27 -07:00
Jason Volk 4ee38bc08f modules/client/sync/rooms/state: Hoist event fetchers from loop. 2019-10-07 20:19:41 -07:00
Jason Volk dae475664a modules/client/rooms/members: Hoist event::fetch instance from loop. 2019-10-07 20:12:16 -07:00
Jason Volk ccaf730ce1 modules/console: Detect bytes for pretty(iec()) in db ticker output. 2019-10-07 17:41:06 -07:00
Jason Volk 2b2374db6c ircd: Split all non-matrix definitions back to lib; rename module to net_dns_cache. 2019-10-05 17:37:44 -07:00
Jason Volk b5b4f9b4a5 ircd: Update stale README information. [ci skip] 2019-10-05 16:18:09 -07:00
Jason Volk 1980fd5e73 modules/client/rooms/invite: Move invite definition to lib. 2019-10-05 15:50:18 -07:00
Jason Volk b8439d61a9 modules/client: Fix errant non-m:: resources. 2019-10-04 20:23:59 -07:00
Jason Volk f8e74fbc36 ircd:Ⓜ️:homeserver: Fix remaining module init for now. 2019-10-04 15:08:49 -07:00
Jason Volk eaf64ba732 ircd:Ⓜ️ Reduce infolog noise here; fixes. 2019-10-04 13:55:06 -07:00
Jason Volk 6f798df65c ircd:Ⓜ️:homeserver: Refactor conf related; patch self:: related; console cmds. 2019-10-04 13:49:37 -07:00
Jason Volk 08ea932c59 ircd:Ⓜ️ Simplify/remove homeserver::rooms related. 2019-10-04 12:48:02 -07:00
Jason Volk 61d050024f modules/net_dns_cache: Fix room creation related; various. 2019-10-03 18:54:35 -07:00
Jason Volk 8764f523d4 ircd:Ⓜ️:vm: Move core from modules to matrix; split units. 2019-10-03 12:14:29 -07:00
Jason Volk cfc76f1777 ircd::net::dns: Move resolver into libircd proper. 2019-10-03 12:14:29 -07:00
Jason Volk 7e51d5dfca ircd:Ⓜ️:vm: Make debuglog on accept conf item default to true. 2019-10-03 09:26:18 -07:00
Jason Volk 710b97dc62 ircd:Ⓜ️:user: Belated move of m::user definitions into lib. 2019-10-02 18:30:56 -07:00
Jason Volk dbb3c55db5 matrix: Add m::homeserver; preliminary virtual origin networks. 2019-10-01 17:56:01 -07:00
Jason Volk 9c49e8bdb5 ircd:Ⓜ️ Remove tls fingerprint related. 2019-09-30 20:38:57 -07:00
Jason Volk d03cf8f7a8 modules: Re-type matrix resource handlers under m::resource. 2019-09-29 14:00:02 -07:00
Jason Volk 85845dcff2 Abstract ircd::resource from ircd:Ⓜ️:resource; fix header stack. 2019-09-29 14:00:02 -07:00
Jason Volk f6992ca3e1 matrix: Split matrix base unit. 2019-09-27 19:35:26 -07:00
Jason Volk 183e44e0b6 modules: Distill all API's from modules up to matrix lib. 2019-09-27 19:35:26 -07:00
Jason Volk d3809d43e5 Reorganize Makefiles. 2019-09-27 19:35:26 -07:00
Jason Volk 89e0a7fc82 ircd: Move matrix application related to derived library. 2019-09-27 19:35:26 -07:00
Jason Volk fb3c6b47a4 modules: Split net_dns_cache from net_dns unit; same shared object. 2019-09-27 19:35:26 -07:00
Jason Volk 7934756858 ircd:Ⓜ️ Split user registration API from client/register; minor reorg. 2019-09-27 19:35:26 -07:00
Jason Volk 9c8c13e91d ircd:Ⓜ️ Preliminary module sorting for consolidated libmatrix archive. 2019-09-27 19:35:26 -07:00
Jason Volk 39b84cbb5f modules: Split user profile related API from hooks; into module. 2019-09-27 19:35:26 -07:00
Jason Volk d7d3b54e5c modules/m_room_message: Split highlight auth hook to module. 2019-09-27 19:35:26 -07:00
Jason Volk ef7954f994 modules: Split event::horizon / event::pretty to modules. 2019-09-27 19:35:25 -07:00
Jason Volk aa907ef813 modules: Split m::create() from m_room_create.so to m_create.so 2019-09-27 19:35:25 -07:00
Jason Volk 17ea721eda modules/m_breadcrumb_rooms: Add missing export macros. 2019-09-25 12:56:29 -07:00
Jason Volk 67c00f7283 modules/console: Fix error. 2019-09-24 20:39:48 -07:00
Jason Volk 6dcdbba06b ircd::magick: Minor cleanup. 2019-09-24 18:34:03 -07:00
Jason Volk 7ea609ee67 modules/console: Add events type counts cmd. 2019-09-24 17:40:44 -07:00
Jason Volk b3f45daff8 modules/client/sync/rooms/ephemeral/receipt: Add prefetch loops for polylog sync. 2019-09-24 16:33:06 -07:00
Jason Volk 0d9d5a8c24 modules/m_breadcrumb_rooms: Update for room::events prefetching interface here. 2019-09-24 16:01:29 -07:00
Jason Volk 8880eadfd5 ircd:Ⓜ️:room::events: Additional prefetch()/preseek() related interfaces. 2019-09-24 15:46:11 -07:00
Jason Volk 080cec4dba modules/client/rooms/members: Replace counterproductive query in prefetch loop. 2019-09-24 15:16:19 -07:00
Jason Volk 4254960ee1 ircd:Ⓜ️ Simplify m::visible(); refactor implementation. 2019-09-24 15:16:19 -07:00
Jason Volk 5d9ec170f8 ircd:Ⓜ️:vm: Add event origin for internal room paranoid check in eval. 2019-09-24 14:31:14 -07:00
Jason Volk 49ce16d74b modules/client/rooms/ephemeral/receipt: Minor cleanup. 2019-09-23 23:26:07 -07:00
Jason Volk 575bacee8d ircd:Ⓜ️:room::events: Simplify count() suite. 2019-09-23 23:26:07 -07:00
Jason Volk df0fae203e modules/client/initialSync: Simplify json::stack usage. 2019-09-23 20:11:20 -07:00
Jason Volk a984c2a454 modules/client/sync/to_device: Use m::query(); minor cleanup. 2019-09-23 19:46:32 -07:00
Jason Volk 35f9810dbd modules/client/rooms/members: Fix at token usage. 2019-09-23 14:51:24 -07:00
Jason Volk 82a2f14481 ircd::net::dns::cache: Hook vm.effect rather than vm.notify. 2019-09-23 14:18:22 -07:00
Jason Volk 183acf8efc ircd:Ⓜ️:sync: Increase token buffer; use function reference. 2019-09-23 14:18:22 -07:00
Jason Volk b518820357 modules/console: Fix argument order. 2019-09-23 13:31:05 -07:00
Jason Volk 7b24eace2b modules/client/rooms/members: Impove/cleanup at/since parameter related. 2019-09-23 13:00:30 -07:00
Jason Volk 2b3de2ea69 ircd::resource: Add assertions; fix error. 2019-09-23 12:58:34 -07:00
Jason Volk 4368f1af7a modules/m_room_member: Move membership hook back to vm.effect for now. 2019-09-22 22:31:07 -07:00
Jason Volk db74d89f23 modules/m_room_aliases: Add rooms summary trigger on alias change. 2019-09-22 21:47:35 -07:00
Jason Volk fe0127d0ec modules/m_room_join_rules: Fix room summary trigger. 2019-09-22 21:45:19 -07:00
Jason Volk 16d45ef8d5 modules/m_room_member: Fix m::get() overload for integer value. 2019-09-22 21:09:36 -07:00
Jason Volk 39ade19ae3 ircd::ctx: Switch from steady_timer to deadline_timer. 2019-09-22 20:59:54 -07:00
Jason Volk a20659b1d8 ircd::ios: Profile the latency of handler execution. 2019-09-22 16:27:54 -07:00
Jason Volk 3de5381d61 modules/console: Minor cleanup; more fences for latency test. 2019-09-21 12:52:36 -07:00
Jason Volk 1731ff8bad modules/client/rooms/leave: Override any mismatch between room and user_room. 2019-09-20 15:20:37 -07:00
Jason Volk 57da17f7fa modules/m_room_member: Add chronology condition for ircd.member state. 2019-09-20 15:20:37 -07:00
Jason Volk fd30c4701c ircd::net::dns: Wait on cache before resolver on fini; replace regressed (26cd9cec85). 2019-09-20 12:34:10 -07:00
Jason Volk 99d080767f ircd: Add interface to backtrace(3). 2019-09-19 22:07:41 -07:00
Jason Volk a8b140ad6d modules/conf: Remove noexcept to propagate termination. 2019-09-19 22:07:41 -07:00
Jason Volk 26cd9cec85 ircd::net::dns::resolver: Wait for all tags before net teardown on fini. 2019-09-19 14:03:48 -07:00
Jason Volk d4b0dbaa8c modules: Move room::events::horizon::rebuild() to m_room_events.so. 2019-09-19 11:08:59 -07:00
Jason Volk 578a0e03fd modules/client/rooms/events: Prevent EDU's from being sent to client here. 2019-09-19 10:20:40 -07:00
Jason Volk fa698123dc modules/console: Add bare metal latency as control result. 2019-09-19 00:03:05 -07:00
Jason Volk 362122c951 modules/client/sync/rooms/state: Use the viewport size item for iteration depth. 2019-09-18 14:48:32 -07:00
Jason Volk da6ae72b69 modules/client/sync/rooms/state: Simplify and optimize member event fetching at phase=0. 2019-09-18 14:29:40 -07:00
Jason Volk 2603953809 modules/client/sync/rooms/state: Simplify phase=0 concurrency w/ prefetch. 2019-09-18 14:29:40 -07:00
Jason Volk 6ed0db3274 modules/client/rooms/messages: Abandon prefetching in the messages handler.
Aborted due to collisions and stalls. Note that messages are already prefetched
by the breadcrumb_rooms handler on room change.
2019-09-18 13:09:19 -07:00
Jason Volk 1d449ed134 modules/client/rooms/members: Support multiple membership constraint query paramters for optimization. 2019-09-18 12:30:51 -07:00
Jason Volk 321b7e32c1 modules/client/rooms/forget: Simplify checks. (closes #130) 2019-09-18 12:30:51 -07:00
Jason Volk 11699baff0 ircd:Ⓜ️ Consolidate m::membership() suite to header; minor cleanup. 2019-09-18 12:30:50 -07:00
Jason Volk cdce334b80 modules/client/rooms/messages: Hoist prefetching into branch; disable here for now. 2019-09-17 23:17:51 -07:00
Jason Volk 404da37cc4 modules/client/rooms/messages: Cleanup loop; improve prefetch; reduce density of branches. 2019-09-17 22:38:38 -07:00
Jason Volk be2ae27af6 modules/client/sync/rooms/timeline: Fix loop conditions. 2019-09-17 22:21:55 -07:00
Jason Volk 5bf60df98b ircd:Ⓜ️:event::apend: Skip the redacted query if event is room head. 2019-09-17 21:06:03 -07:00
Jason Volk fe8f9ee611 modules/client/sync/rooms/timeline: Conditional prev_batch; minor cleanup. 2019-09-17 20:19:27 -07:00
Jason Volk c77353fd9c modules/client/sync/rooms/timeline: Add conditional prefetch on down iteration. 2019-09-17 20:19:27 -07:00
Jason Volk 252a89fbaa modules/client/rooms/messages: Issue prefetches to pipeline the fetch loop. 2019-09-17 20:17:37 -07:00
Jason Volk 049ac86564 ircd:Ⓜ️:event::append: Minor cleanup; reduce density of branches. 2019-09-17 20:17:37 -07:00
Jason Volk b3323c3f8d ircd:Ⓜ️:event::append: Add option to bypass redaction query. 2019-09-17 20:17:37 -07:00
Jason Volk 25bcd24e5f ircd:Ⓜ️:media::file: Eliminate block buffering here. 2019-09-17 20:17:37 -07:00
Jason Volk dc1364c735 ircd:Ⓜ️:media::block: Add zero-copy block::get() closure. 2019-09-17 20:17:37 -07:00
Jason Volk e357974d6f ircd:Ⓜ️:media::file: Fully pipeline data block and event requests during file read. 2019-09-17 12:41:20 -07:00
Jason Volk e267b5232d ircd:Ⓜ️:media::block: Add prefetch() to interface. 2019-09-17 11:35:50 -07:00
Jason Volk fb12a0384e modules/m_breadcrumb_rooms: Hook breadcrumb rooms to track focused room; prefetch viewport. 2019-09-16 19:59:03 -07:00
Jason Volk 05641c356b ircd:Ⓜ️:media::file: Add prefetching for events during read iteration. 2019-09-16 19:59:03 -07:00
Jason Volk 994b42ca71 modules/federation/query: Improve servers list in directory handler. 2019-09-16 19:59:03 -07:00
Jason Volk 2fccad88f2 ircd:Ⓜ️:vm: Tweak debuglog message points; fix missing facilities. 2019-09-16 19:59:03 -07:00
Jason Volk fd5907a99d ircd:Ⓜ️:vm: Evaluate auth against present and relative state in sequence. 2019-09-16 16:33:47 -07:00
Jason Volk c0f4640a74 modules/console: Default to local users for users cmd. 2019-09-16 14:08:29 -07:00
Jason Volk 839ca6f000 modules/federation/make_join: Improve error string for propagation. 2019-09-16 13:39:48 -07:00
Jason Volk 8f4def84f4 modules/client/rooms/invite: Remove unnecessary check. 2019-09-16 13:33:35 -07:00
Jason Volk fc4148d874 ircd:Ⓜ️:room::bootstrap: Relax check; fix error on join after accepting invite. 2019-09-16 13:24:40 -07:00
Jason Volk c29fca7b4d ircd:Ⓜ️:vm: Ensure eval.event_id is assigned on inject. 2019-09-16 13:24:19 -07:00
Jason Volk e73ebfd151 ircd:Ⓜ️:fetch: Throw on loop break to properly set request.eptr and finish(). 2019-09-16 12:38:01 -07:00
Jason Volk c7de8aec82 ircd:Ⓜ️:init::backfill: Only ask the server which provided the unknown head for the event. 2019-09-16 12:30:44 -07:00
Jason Volk a9b86c5594 ircd:Ⓜ️:fetch: Add an attempt_limit option to interface; minor cleanup. 2019-09-16 12:30:36 -07:00
Jason Volk 2d1911a2b1 ircd:Ⓜ️:fetch: Add conf item for backfill limit default. 2019-09-16 12:12:43 -07:00
Jason Volk 49ed79e9df ircd:Ⓜ️:fetch: Rename opts::limit to opts::backfill_limit. 2019-09-16 12:09:30 -07:00
Jason Volk a6efe6986c modules/client/sync/rooms/timeline: Add comment. [skip ci] 2019-09-16 12:06:25 -07:00
Jason Volk 2115bf7cf4 ircd:Ⓜ️:user: Move definitions from modules/client to m_user. 2019-09-16 11:03:45 -07:00
Jason Volk 7fa72e8f39 ircd:Ⓜ️ Move the m::redact() definition out of client/rooms modules. 2019-09-16 10:55:23 -07:00
Jason Volk 3f65055892 modules/client/sync/rooms/state: Employ prev_content elision on some appends. 2019-09-15 20:04:23 -07:00
Jason Volk b4b07debbd ircd:Ⓜ️:event::append: Add option to elide query for state prev_content. 2019-09-15 19:47:03 -07:00
Jason Volk 56e9f5e009 ircd:Ⓜ️:event::append: Only query for ignores for non-self sender; minor cleanup. 2019-09-15 19:36:39 -07:00
Jason Volk da38ffc49c ircd:Ⓜ️:room::bootstrap: Simplify process; remove cruft. 2019-09-15 19:36:39 -07:00
Jason Volk f9c47eee58 ircd:Ⓜ️:room::bootstrap: Reuse any existing join event on bootstrap. 2019-09-15 19:36:39 -07:00
Jason Volk 0f00468bb8 modules/client/sync/rooms/timeline: Add case to linear-sync a backfill of timeline events on join. 2019-09-15 19:36:39 -07:00
Jason Volk ec22842c63 ircd:Ⓜ️:event::append: Fix exclusion of redacts property. 2019-09-15 19:36:39 -07:00
Jason Volk ea33e0326e ircd:Ⓜ️:rooms::summary: Refactor for per-origin result synthesis and learning. 2019-09-15 14:59:36 -07:00
Jason Volk da6fd3e3ab ircd::http: Move version mismatch to unlikely segment.
ircd:Ⓜ️:vm: Reduce branches.

ircd::http: Minor cleanup.
2019-09-14 16:33:14 -07:00
Jason Volk 9319df1a1b ircd:Ⓜ️:rooms::summary: Export state key manip utils to interface. 2019-09-14 16:08:33 -07:00
Jason Volk 1b4693601d modules/console: Add type/sender/state_key to table if available. 2019-09-14 15:49:10 -07:00
Jason Volk 3ac8bd2e60 modules/conf: Bypass update call on init for not-existent items. 2019-09-14 15:30:05 -07:00
Jason Volk 1011e2b9a3 modules/conf: Add conf_updated(event_idx) overload handling errors on event::fetch. 2019-09-14 15:30:05 -07:00
Jason Volk 653fc148d3 ircd:Ⓜ️:fetch: Only check signature for v1 events. 2019-09-14 14:45:19 -07:00
Jason Volk 12d969cdfd ircd:Ⓜ️:fetch: Fix error in signature checker. 2019-09-14 14:18:51 -07:00
Jason Volk deeb731d42 modules/client/search: Update the handler with skeleton structure. 2019-09-14 13:51:24 -07:00
Jason Volk 2238bf1df3 ircd:Ⓜ️:room::bootstrap: Fix make_join eval options. 2019-09-13 18:41:06 -07:00
Jason Volk a2ffebeb06 ircd:Ⓜ️:rooms::summary: Use server name as fetch target. 2019-09-13 18:41:06 -07:00
Jason Volk f8e3030819 modules/client/directory/list: Use local rooms::summary::set() overload. 2019-09-13 18:04:53 -07:00
Jason Volk 9eae6be223 ircd:Ⓜ️:rooms: Add summary iteration based on alias hosts. 2019-09-13 17:48:35 -07:00
Jason Volk e4a95c9928 ird:Ⓜ️:rooms: Remove summary iteration based on room_id.host(). 2019-09-13 17:45:04 -07:00
Jason Volk 4753e7aada ircd:Ⓜ️:rooms: Only test join_rule if room is not summarized in !public. 2019-09-13 17:26:28 -07:00
Jason Volk 4b949e7b01 modules/m_vm_fetch: Fix state fetch condition. 2019-09-13 16:32:26 -07:00
Jason Volk 97881ac976 ircd:Ⓜ️:vm::eval: Fix generation and scope duration of event_id in array eval. 2019-09-13 15:39:06 -07:00
Jason Volk 0c45fb827d ircd:Ⓜ️:vm: Add a specific edu option to vmopts. 2019-09-13 15:26:44 -07:00