mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Prepend new participant views instead of appending
This commit is contained in:
@@ -11,7 +11,8 @@ module.exports =
|
||||
|
||||
if atom.getLoadSettings().sessionId
|
||||
session = atom.guestSession
|
||||
for participant in session.getParticipants()
|
||||
participantViews.add(session, session.getSelfParticipant())
|
||||
for participant in session.getOtherParticipants()
|
||||
participantViews.add(session, participant)
|
||||
else
|
||||
session = new Session(site: window.site)
|
||||
|
||||
@@ -67,7 +67,7 @@ class ParticipantViewContainer extends View
|
||||
add: (session, participant) ->
|
||||
view = new ParticipantView(session, participant)
|
||||
@participantViews[participant.clientId] = view
|
||||
@append(view)
|
||||
@prepend(view)
|
||||
|
||||
remove: (participant) ->
|
||||
@participantViews[participant.clientId].remove()
|
||||
|
||||
Reference in New Issue
Block a user