mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 03:10:46 -06:00
FEATURE: only scroll to bottom for discobot
Non discobot replies on PMs triggering scroll cause confusion.
This commit is contained in:
parent
d4bf7d6831
commit
267d129f38
@ -1272,10 +1272,14 @@ export default Ember.Controller.extend(bufferedProperty("model"), {
|
||||
}
|
||||
}
|
||||
|
||||
// scroll to bottom is very specific to new posts from discobot
|
||||
// hence the -2 check (dicobot id). We can shift all this code
|
||||
// to discobot plugin longer term
|
||||
if (
|
||||
topic.get("isPrivateMessage") &&
|
||||
this.currentUser &&
|
||||
this.currentUser.get("id") !== data.user_id &&
|
||||
data.user_id === -2 &&
|
||||
data.type === "created"
|
||||
) {
|
||||
const postNumber = data.post_number;
|
||||
|
Loading…
Reference in New Issue
Block a user