Fix/improve minor things

This commit is contained in:
Tulir Asokan
2018-08-26 22:50:28 +03:00
parent a6ebc50f6d
commit 65f077c645
4 changed files with 13 additions and 2 deletions

View File

@ -388,6 +388,10 @@ func (portal *Portal) MarkHandled(jid types.WhatsAppMessageID, mxid types.Matrix
func (portal *Portal) GetMessageIntent(info whatsapp.MessageInfo) *appservice.IntentAPI {
if info.FromMe {
if portal.IsPrivateChat() {
// TODO handle own messages in private chats properly
return nil
}
return portal.user.GetPuppetByJID(portal.user.JID()).Intent()
} else if portal.IsPrivateChat() {
return portal.MainIntent()