@@ -48,6 +48,8 @@ namespace Lagrange.Core.Internal.Context.Logic.Implementation;
4848[ EventSubscribe ( typeof ( SysPinChangedEvent ) ) ]
4949[ EventSubscribe ( typeof ( FetchPinsEvent ) ) ]
5050[ EventSubscribe ( typeof ( SetPinFriendEvent ) ) ]
51+ [ EventSubscribe ( typeof ( GroupSysRecallPokeEvent ) ) ]
52+ [ EventSubscribe ( typeof ( FriendSysRecallPokeEvent ) ) ]
5153[ BusinessLogic ( "MessagingLogic" , "Manage the receiving and sending of messages and notifications" ) ]
5254internal class MessagingLogic : LogicBase
5355{
@@ -160,7 +162,17 @@ public override async Task Incoming(ProtocolEvent e)
160162 }
161163 case GroupSysPokeEvent poke :
162164 {
163- var pokeArgs = new GroupPokeEvent ( poke . GroupUin , poke . OperatorUin , poke . TargetUin , poke . Action , poke . Suffix , poke . ActionImgUrl ) ;
165+ var pokeArgs = new GroupPokeEvent (
166+ poke . GroupUin ,
167+ poke . OperatorUin ,
168+ poke . TargetUin ,
169+ poke . Action ,
170+ poke . Suffix ,
171+ poke . ActionImgUrl ,
172+ poke . MessageSequence ,
173+ poke . MessageTime ,
174+ poke . TipsSeqId
175+ ) ;
164176 Collection . Invoker . PostEvent ( pokeArgs ) ;
165177 break ;
166178 }
@@ -246,7 +258,17 @@ public override async Task Incoming(ProtocolEvent e)
246258 }
247259 case FriendSysPokeEvent poke :
248260 {
249- var pokeArgs = new FriendPokeEvent ( poke . OperatorUin , poke . TargetUin , poke . Action , poke . Suffix , poke . ActionImgUrl ) ;
261+ var pokeArgs = new FriendPokeEvent (
262+ poke . OperatorUin ,
263+ poke . TargetUin ,
264+ poke . Action ,
265+ poke . Suffix ,
266+ poke . ActionImgUrl ,
267+ poke . PeerUin ,
268+ poke . MessageSequence ,
269+ poke . MessageTime ,
270+ poke . TipsSeqId
271+ ) ;
250272 Collection . Invoker . PostEvent ( pokeArgs ) ;
251273 break ;
252274 }
@@ -296,6 +318,21 @@ public override async Task Incoming(ProtocolEvent e)
296318
297319 break ;
298320 }
321+ case GroupSysRecallPokeEvent recall :
322+ {
323+ uint operatorUin = await Collection . Business . CachingLogic . ResolveUin ( null , recall . OperatorUid ) ?? 0 ;
324+ var @event = new GroupRecallPokeEvent ( recall . GroupUin , operatorUin , recall . TipsSeqId ) ;
325+ Collection . Invoker . PostEvent ( @event ) ;
326+ break ;
327+ }
328+ case FriendSysRecallPokeEvent recall :
329+ {
330+ uint peerUin = await Collection . Business . CachingLogic . ResolveUin ( null , recall . PeerUid ) ?? 0 ;
331+ uint operatorUin = await Collection . Business . CachingLogic . ResolveUin ( null , recall . OperatorUid ) ?? 0 ;
332+ var @event = new FriendRecallPokeEvent ( peerUin , operatorUin , recall . TipsSeqId ) ;
333+ Collection . Invoker . PostEvent ( @event ) ;
334+ break ;
335+ }
299336 }
300337 }
301338
0 commit comments