Skip to content

Commit

Permalink
Save sender email for messages read and starred
Browse files Browse the repository at this point in the history
Signed-off-by: GretaD <gretadoci@gmail.com>
  • Loading branch information
GretaD committed Feb 6, 2020
1 parent 644afe9 commit a4b3f89
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@nextcloud/auth": "^1.2.1",
"@nextcloud/axios": "^1.3.1",
"@nextcloud/dialogs": "^1.0.0",
"@nextcloud/event-bus": "^1.1.2",
"@nextcloud/files": "^1.0.0",
"@nextcloud/initial-state": "^1.1.0",
"@nextcloud/l10n": "^1.0.1",
Expand Down
2 changes: 2 additions & 0 deletions src/components/Envelope.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import Moment from './Moment'
import Avatar from './Avatar'
import {calculateAccountColor} from '../util/AccountColor'
import {emit} from '@nextcloud/event-bus'
export default {
name: 'Envelope',
Expand Down Expand Up @@ -127,6 +128,7 @@ export default {
methods: {
onToggleFlagged() {
this.$store.dispatch('toggleEnvelopeFlagged', this.data)
emit('mail:interaction', { type: 'message-starred', recipient: this.selectedUser.user})
},
onToggleSeen() {
this.$store.dispatch('toggleEnvelopeSeen', this.data)
Expand Down
4 changes: 3 additions & 1 deletion src/components/Message.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ import MessagePlainTextBody from './MessagePlainTextBody'
import Loading from './Loading'
import Logger from '../logger'
import MessageAttachments from './MessageAttachments'
import {emit} from '@nextcloud/event-bus'
export default {
name: 'Message',
Expand Down Expand Up @@ -232,7 +233,8 @@ export default {
},
onToggleSeen() {
this.$store.dispatch('toggleEnvelopeSeen', this.envelope)
},
emit('mail:interaction', { type: 'message-read', recipient: this.selectedUser.user})
},
onDelete(e) {
// Don't try to navigate to the deleted message
e.preventDefault()
Expand Down

0 comments on commit a4b3f89

Please sign in to comment.