0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-29 20:28:52 +02:00
Commit graph

212 commits

Author SHA1 Message Date
Jason Volk
1b49d001b2 ircd:Ⓜ️:typing: Log exceptions coming through the vm.eval edu handler. 2020-03-25 18:27:40 -07:00
Jason Volk
1e96e34b54 ircd:Ⓜ️:vm: Set eval event/event_id members in outer frame. 2020-03-25 18:27:40 -07:00
Jason Volk
b8239d45cd ircd:Ⓜ️:dbs: Split dbs unit per column; naming simplifications; major reorg. 2020-03-25 16:08:17 -07:00
Jason Volk
ddbabedf84 ircd:Ⓜ️:event::conforms: Add type and state_key length limitation conditions. 2020-03-25 14:41:16 -07:00
Jason Volk
629617deb9 ircd:Ⓜ️:event::conforms: Add missing origin conditions. 2020-03-25 14:41:16 -07:00
Jason Volk
35a18366b4 ircd:Ⓜ️:user::pushrules: Ensure user-set rules have priority over server-default. 2020-03-24 21:38:58 -07:00
Jason Volk
3472f551eb ircd:Ⓜ️:user::notifications: Optimize with non-querying metadata closure overload. 2020-03-24 16:41:16 -07:00
Jason Volk
8f251dc266 ircd:Ⓜ️:user::notifications: Add unmake_type() inverting tool. 2020-03-24 16:16:16 -07:00
Jason Volk
4c70d8ce08 ircd:Ⓜ️:user::notifications: Add room_id to opts; prefix keying strategy.
modules/m_push: Add room_id to type generation.
2020-03-24 14:56:30 -07:00
Jason Volk
36b1fa6bde ircd:Ⓜ️:room::type: Add prefix matching option. 2020-03-24 14:50:41 -07:00
Jason Volk
d1f9b11b4c ircd:Ⓜ️:user::notifications: Improve iteration with room::type. 2020-03-24 14:14:39 -07:00
Jason Volk
7a6ba49c34 ircd:Ⓜ️:room: Add type iteration interface. 2020-03-24 14:14:39 -07:00
Jason Volk
256e5ed960 ircd:Ⓜ️:dbs: Add room_type column to schema. 2020-03-24 11:49:15 -07:00
Jason Volk
8d6dfa7cd5 ircd:Ⓜ️ Add room_id(event_idx) to convenience suite. 2020-03-23 20:31:21 -07:00
Jason Volk
7861f77015 ircd:Ⓜ️:push: Add branch to handle other pattern key for content rules. 2020-03-23 19:32:01 -07:00
Jason Volk
93cd2ededc ircd:Ⓜ️:user::notifications: Add unit; develop interface; add type generation. 2020-03-23 18:28:39 -07:00
Jason Volk
ab4b31bc13 ircd:Ⓜ️:user::pushrules: Add event_idx of rule as argument to closures.
ircd:Ⓜ️:user::pushers: Add event_idx of rule as argument to closures.
2020-03-23 13:01:24 -07:00
Jason Volk
98562fe488 ircd:Ⓜ️:push: Add tool to determine if rule has highlight tweak set. 2020-03-22 20:04:16 -07:00
Jason Volk
c4c1c47351 ircd:Ⓜ️:push: Add tool to query if an action is notifying or not. 2020-03-22 20:00:14 -07:00
Jason Volk
2a301d6b2a ircd:Ⓜ️:push: Search formatted_body for contains_user_mxid. 2020-03-22 18:34:42 -07:00
Jason Volk
edecb8b9ae ircd:Ⓜ️:push: Use zero-copy closure to fetch displayname. 2020-03-22 18:34:42 -07:00
Jason Volk
7ca990e1ee ircd:Ⓜ️:push: Fix stale assertion. 2020-03-22 18:18:51 -07:00
Jason Volk
fc63e102fa ircd:Ⓜ️:push: Add non-spec condition kind 'state_key_user_mxid'. 2020-03-22 18:18:51 -07:00
Jason Volk
f58cfed6e9 ircd:Ⓜ️:push: Add non-spec condition kind 'contains_user_mxid'. 2020-03-22 18:18:51 -07:00
Jason Volk
aeefb8a155 ircd:Ⓜ️:push: Fixes for the event_match condition functor. 2020-03-22 18:18:51 -07:00
Jason Volk
822b422dfe modules: Add preliminary event pushrule evaluation module. 2020-03-22 18:18:50 -07:00
Jason Volk
643efbfad7 ircd:Ⓜ️:push: Log a debug error for unknown condition kinds. 2020-03-22 18:18:50 -07:00
Jason Volk
6774ac742a ircd:Ⓜ️:push: Optimize condition order for some default spec rules. 2020-03-22 18:18:50 -07:00
Jason Volk
a7a67b0689 ircd:Ⓜ️:user::pushrules: Fix throwing query in nothrow getter. 2020-03-22 18:18:50 -07:00
Jason Volk
55396a9a76 ircd:Ⓜ️:vm: Move the internal(room) query and indicator to outer scope. 2020-03-22 14:03:28 -07:00
Jason Volk
329982f3f1 ircd:Ⓜ️:push: Add iteration for all rules of all users. 2020-03-22 14:03:28 -07:00
Jason Volk
8445cbf83a ircd:Ⓜ️:push: Add log facility for this namespace. 2020-03-21 20:49:54 -07:00
Jason Volk
27556f2d9c ircd:Ⓜ️:vm::eval: Add member which caches the m::internal(room) result. 2020-03-21 20:49:54 -07:00
Jason Volk
592d8a90c2 ircd:Ⓜ️:vm: Additional sequence barrier for shutdown. 2020-03-21 19:37:23 -07:00
Jason Volk
63be2183f9 ircd:Ⓜ️:user: Add pushers interface. 2020-03-21 11:35:40 -07:00
Jason Volk
245195488c ircd:Ⓜ️:push: Add event type prefix string for pusher. 2020-03-21 11:35:40 -07:00
Jason Volk
435721c971 ircd:Ⓜ️:push: Add match interface; condition table; exception propagation. 2020-03-20 22:25:14 -07:00
Jason Volk
d1ff1aec74 ircd:Ⓜ️:push: Implement r0.6.0-13.13.1.5.3 condition kind subroutine logics. 2020-03-20 22:25:14 -07:00
Jason Volk
1d30da7bf3 ircd:Ⓜ️:vm::eval: Skip any mfetch of keys if verify option deselected. 2020-03-20 14:45:12 -07:00
Jason Volk
8db2bf629e ircd:Ⓜ️:vm: Move vm::eval inner-loop logic into vm::execute; fix room_version/event_id. 2020-03-20 14:26:55 -07:00
Jason Volk
3dc679fbb7 ircd:Ⓜ️:room::bootstrap: Cleanup/Unify a base vm::opts for all evals. 2020-03-20 12:15:40 -07:00
Jason Volk
8ca580362f ircd:Ⓜ️:room::bootstrap: Fix loss of room version information during bootstrap. 2020-03-20 12:04:19 -07:00
Jason Volk
fa4160e9a6 ircd::db::dbs: Eliminate strict room::id from event_state tuple; simplify comparator. 2020-03-19 21:54:07 -07:00
Jason Volk
de9f054d97 ircd:Ⓜ️:push: Add remaining content server-default rule w/o pattern. 2020-03-19 16:25:45 -07:00
Jason Volk
28626f17c1 ircd:Ⓜ️:user::pushrules: Integrate the default pushrules for the user. 2020-03-19 16:25:45 -07:00
Jason Volk
f8b99ad26e ircd:Ⓜ️:user: Remove pre-pushrules highlight counter. 2020-03-19 16:01:32 -07:00
Jason Volk
014b6e9a9b ircd:Ⓜ️:typing: Add interruption point before wait in loop. 2020-03-19 16:01:32 -07:00
Jason Volk
abfb106125 ircd: Rename globular classes to indicate case insensitivity. 2020-03-19 16:01:32 -07:00
Jason Volk
bab3f959ac ircd:Ⓜ️:push: Move default rules string under rules class; minor reorg. 2020-03-19 16:01:32 -07:00
Jason Volk
4cd625f2e0 ircd:Ⓜ️:fed: I robbed other churches by receiving support from them so as to serve you. -2 Cor. 11:8 (NIV). 2020-03-18 23:02:35 -07:00