We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3057e70 commit 206f6afCopy full SHA for 206f6af
src/pages/messages/messages.ts
@@ -23,6 +23,7 @@ export class MessagesPage implements OnInit, OnDestroy {
23
senderId: string;
24
loadingMessages: boolean;
25
messagesComputation: Subscription;
26
+ messagesBatchCounter: number = 0;
27
28
constructor(
29
navParams: NavParams,
@@ -65,7 +66,8 @@ export class MessagesPage implements OnInit, OnDestroy {
65
66
this.scrollOffset = this.scroller.scrollHeight;
67
68
MeteorObservable.subscribe('messages',
- this.selectedChat._id
69
+ this.selectedChat._id,
70
+ ++this.messagesBatchCounter
71
).subscribe(() => {
72
// Keep tracking changes in the dataset and re-render the view
73
if (!this.messagesComputation) {
0 commit comments