Skip to content

Commit

Permalink
feat: adicionado identificação para mensagens enviadas
Browse files Browse the repository at this point in the history
permitirá que seja implementado rotina para adição da mensagem
ao estado antes que seja enviada pelo backend.
  • Loading branch information
ldurans committed Nov 14, 2022
1 parent c05d3c2 commit c8b85a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/pages/atendimento/InputMensagem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@
</template>

<script>
import { uid } from 'quasar'
import mixinCommon from './mixinCommon'
import { EnviarMensagemTexto } from 'src/service/tickets'
import { VEmojiPicker } from 'v-emoji-picker'
Expand Down Expand Up @@ -460,6 +461,7 @@ export default {
this.arquivos.forEach(media => {
formData.append('medias', media)
formData.append('body', media.name)
formData.append('idFront', uid())
if (this.isScheduleDate) {
formData.append('scheduleDate', this.scheduleDate)
}
Expand Down Expand Up @@ -497,7 +499,8 @@ export default {
mediaUrl: '',
body: mensagem,
scheduleDate: this.isScheduleDate ? this.scheduleDate : null,
quotedMsg: this.replyingMessage
quotedMsg: this.replyingMessage,
idFront: uid()
}
if (this.isScheduleDate) {
message.scheduleDate = this.scheduleDate
Expand Down

0 comments on commit c8b85a5

Please sign in to comment.