Merge branch 'chat' into dev
This commit is contained in:
commit
e28cdceb50
@ -25,7 +25,7 @@ type ReplyWhenUserJoinSession struct {
|
||||
atUserId int
|
||||
}
|
||||
|
||||
func (r ReplyWhenUserJoinSession) Hit(event ws.ListenEventData, sender *accountFiee.ChatUserData) (hit bool) {
|
||||
func (r *ReplyWhenUserJoinSession) Hit(event ws.ListenEventData, sender *accountFiee.ChatUserData) (hit bool) {
|
||||
if event.EventType != ws.EventUserJoin {
|
||||
return
|
||||
}
|
||||
@ -61,7 +61,7 @@ func (r ReplyWhenUserJoinSession) Hit(event ws.ListenEventData, sender *accountF
|
||||
return
|
||||
}
|
||||
|
||||
func (r ReplyWhenUserJoinSession) Run(cache *chatCache.ChatCache) (err error) {
|
||||
func (r *ReplyWhenUserJoinSession) Run(cache *chatCache.ChatCache) (err error) {
|
||||
err = logic.NewMessage(context.Background(), cache, r.Sender, dto.NewMessageRequest{
|
||||
Waiter: true,
|
||||
Robot: true,
|
||||
|
Loading…
Reference in New Issue
Block a user