1
0
mirror of https://github.com/Rudi9719/kbtui.git synced 2026-03-22 07:37:23 +00:00

Don't try to edit other peoples messages

This commit is contained in:
Gregory Rudolph
2019-10-11 08:45:34 -04:00
parent 301ead6e3a
commit c1e0e1452a

View File

@ -34,6 +34,10 @@ func cmdEdit(cmd []string) {
printToView("Feed", fmt.Sprintf("%+v", origMessage))
return
}
if origMessage.Result.Messages[0].Msg.Sender.Username != k.Username {
printToView("Feed", "You cannot edit another user's messages.")
return
}
editString := origMessage.Result.Messages[0].Msg.Content.Text.Body
clearView("Edit")
popupView("Edit")