Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
hfpp2012
/
vbot
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e76e68ed
authored
Jan 19, 2017
by
HanSon
Committed by
GitHub
Jan 19, 2017
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge pull request #6 from HanSon/dev
修复撤回历史消息报错
2 parents
02b65c4e
7a35374b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
src/Message/Entity/Recall.php
src/Message/Entity/Recall.php
View file @
e76e68e
...
@@ -49,10 +49,13 @@ class Recall extends Message implements MessageInterface
...
@@ -49,10 +49,13 @@ class Recall extends Message implements MessageInterface
$msgId
=
$this
->
parseMsgId
(
$this
->
msg
[
'Content'
]);
$msgId
=
$this
->
parseMsgId
(
$this
->
msg
[
'Content'
]);
/** @var Message $message */
/** @var Message $message */
$this
->
origin
=
$message
=
message
()
->
get
(
$msgId
);
$this
->
origin
=
$message
=
message
()
->
get
(
$msgId
,
null
);
$this
->
nickname
=
$message
->
sender
?
$message
->
sender
[
'NickName'
]
:
account
()
->
getAccount
(
$message
->
msg
[
'FromUserName'
])[
'NickName'
];
if
(
!
$message
){
$this
->
nickname
=
$message
->
sender
?
$message
->
sender
[
'NickName'
]
:
account
()
->
getAccount
(
$message
->
msg
[
'FromUserName'
])[
'NickName'
];
$this
->
setContent
();
}
$this
->
setContent
();
}
}
private
function
setContent
()
private
function
setContent
()
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment