Code Monkey home page Code Monkey logo

Comments (7)

antoine92190 avatar antoine92190 commented on June 6, 2024 2

Also added the username conditional display on the documentation: 98058e3
Thanks!

from vue-advanced-chat.

antoine92190 avatar antoine92190 commented on June 6, 2024 1

I'm not 100% sure to understand your issue. Do you have any errors on the console?
You can have a look at the demo code I provided within the repo, line 334.

To add a new message or update a specific message, you can do as below:

// To add a new message
this.messages = this.messages.concat([newMessage])

// To update a specific message
this.$set(this.messages, newMessageIndex, newMessage)

from vue-advanced-chat.

antoine92190 avatar antoine92190 commented on June 6, 2024 1

Sounds good. Just added the option to disable actions and/or reactions for a specific message: 1436393

from vue-advanced-chat.

sintexph avatar sintexph commented on June 6, 2024

I'm not 100% sure to understand your issue. Do you have any errors on the console?
You can have a look at the demo code I provided within the repo, line 334.

To add a new message or update a specific message, you can do as below:

// To add a new message
this.messages = this.messages.concat([newMessage])

// To update a specific message
this.$set(this.messages, newMessageIndex, newMessage)

Thank you I think I got it already, anyways I have questions below hope you can help me.

  1. do you have an idea on how to disable the actions on the specific message only?
  2. how to reflect the username on each message?

thank you in advance

from vue-advanced-chat.

antoine92190 avatar antoine92190 commented on June 6, 2024
  1. This can be a nice feature to add, I can implement it shortly and let you know when it's done

  2. I intentionally hide the username when there are only 2 persons in the room.
    I feel like showing username on each message would be unnecessary.
    However, username will appear on each message if there are 2+ users in the room.
    But I am open to the idea, do you think it is actually useful to have the username shown on each message if only 2 persons are in the room?

from vue-advanced-chat.

sintexph avatar sintexph commented on June 6, 2024
  1. This can be a nice feature to add, I can implement it shortly and let you know when it's done
  2. I intentionally hide the username when there are only 2 persons in the room.
    I feel like showing username on each message would be unnecessary.
    However, username will appear on each message if there are 2+ users in the room.
    But I am open to the idea, do you think it is actually useful to have the username shown on each message if only 2 persons are in the room?
  1. Thank you very much I really appreciate it.
  2. I see the username will only display if there are more than 2 users, that makes sense, I just didn't know since I did not see it on the documentation but just keep it that way.

from vue-advanced-chat.

sintexph avatar sintexph commented on June 6, 2024

Thank you very much, I will just wait for your update in NPM

from vue-advanced-chat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.