[ad_1]

export default {
  data() {
    return {
      activeClass: "active-user",
      users: [],
      messagesList: messagesList,
    };
  },
  

  setup() {
  
    onMounted(() => {
      const userRef = collection(db, "users");
      const q = query(userRef, where("uid", "not-in", [auth.currentUser.uid]));
      console.log(q);
      const unsub = onSnapshot(q, (querySnapshot) => {
        querySnapshot.forEach((doc) => {
         this.users.push(doc.data());
        });
      });
    });
  },
};

[ad_2]