Skip to content

Commit

Permalink
fix issue of multi msg cannot view on android client.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrs4s committed Jul 28, 2020
1 parent 91aa75e commit 0ecd91e
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions client/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,17 +279,7 @@ func packRequestDataV3(data []byte) (r []byte) {
}

func genForwardCard(resId, preview, title, brief, source, summary string, ts int64) *message.SendingMessage {
template := fmt.Sprintf(`
<?xml version='1.0' encoding='UTF-8'?>
<msg serviceID="35" templateID="1" action="viewMultiMsg" brief="%s" m_resid="%s" m_fileName="%d" tSum="3" sourceMsgId="0" url="" flag="3" adverSign="0" multiMsgFlag="0">
<item layout="1">
<title color="#000000" size="34">%s</title>
%s
<hr></hr>
<summary size="26" color="#808080">%s</summary>
</item>
<source name="%s"></source>
</msg>`, brief, resId, ts, title, preview, summary, source)
template := fmt.Sprintf(`<?xml version='1.0' encoding='UTF-8'?><msg serviceID="35" templateID="1" action="viewMultiMsg" brief="%s" m_resid="%s" m_fileName="%d" tSum="3" sourceMsgId="0" url="" flag="3" adverSign="0" multiMsgFlag="0"><item layout="1"><title color="#000000" size="34">%s</title> %s<hr></hr><summary size="26" color="#808080">%s</summary></item><source name="%s"></source></msg>`, brief, resId, ts, title, preview, summary, source)
return &message.SendingMessage{Elements: []message.IMessageElement{
&message.ServiceElement{
Id: 35,
Expand Down

0 comments on commit 0ecd91e

Please sign in to comment.