Adjust the format of contact messages

This commit is contained in:
zhaoYangguang 2020-09-09 17:05:56 +08:00
parent 316078bd8d
commit 6a7937f41a
1 changed files with 1 additions and 3 deletions

View File

@ -540,7 +540,6 @@ func (portal *Portal) UpdateMetadata(user *User) bool {
if key == user.JID { if key == user.JID {
continue continue
} }
fmt.Println("CreateMatrixRoom3.1: ", key)
if contact, ok := user.Conn.Store.Contacts[key]; ok { if contact, ok := user.Conn.Store.Contacts[key]; ok {
portalName += contact.DisplayName portalName += contact.DisplayName
} }
@ -1468,10 +1467,9 @@ func (portal *Portal) HandleContactMessageSkype(source *User, message skype.Reso
content := &event.MessageEventContent{ content := &event.MessageEventContent{
Body: fmt.Sprintf("%s\n%s", contactMessage.C.F, contactMessage.C.S), Body: fmt.Sprintf("%s\n%s", contactMessage.C.F, contactMessage.C.S),
MsgType: event.MsgText, MsgType: "m.contact",//event.MsgText,
} }
//portal.SetReply(content, message.ContextInfo)
portal.SetReplySkype(content, message) portal.SetReplySkype(content, message)
_, _ = intent.UserTyping(portal.MXID, false, 0) _, _ = intent.UserTyping(portal.MXID, false, 0)