Never show our own users in typing bar
This commit is contained in:
parent
7a959115ef
commit
cf54c0a29f
1
TODO.md
1
TODO.md
|
@ -18,7 +18,6 @@
|
||||||
- Horrible performance for big rooms
|
- Horrible performance for big rooms
|
||||||
|
|
||||||
- UI
|
- UI
|
||||||
- Don't show typing bar for any of our users
|
|
||||||
- Show error box if uploading avatar fails
|
- Show error box if uploading avatar fails
|
||||||
- EditAccount page:
|
- EditAccount page:
|
||||||
- Device settings
|
- Device settings
|
||||||
|
|
|
@ -6,11 +6,16 @@
|
||||||
Qt.include("../utils.js")
|
Qt.include("../utils.js")
|
||||||
|
|
||||||
function typingTextFor(members, ourUserId) {
|
function typingTextFor(members, ourUserId) {
|
||||||
|
let ourUsers = []
|
||||||
let profiles = []
|
let profiles = []
|
||||||
let names = []
|
let names = []
|
||||||
|
|
||||||
|
for (let i = 0; i < accounts.count; i++) {
|
||||||
|
ourUsers.push(accounts.get(i).userId)
|
||||||
|
}
|
||||||
|
|
||||||
for (let member of members) {
|
for (let member of members) {
|
||||||
if (member != ourUserId) { profiles.push(users.find(member)) }
|
if (! ourUsers.includes(member)) { profiles.push(users.find(member)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
profiles.sort((left, right) => {
|
profiles.sort((left, right) => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user