From b60be160acc46f07eff84a391398d8421a0dc1db Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Fri, 8 Dec 2023 11:09:20 +0000 Subject: [PATCH] ReplyWidgetVisual: Replace deprecated selectLastContentOffset call Change-Id: I80b64ec1d3ecf1985c29a8efc3d072778ffe783f --- modules/dt.ui.ReplyWidgetVisual.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dt.ui.ReplyWidgetVisual.js b/modules/dt.ui.ReplyWidgetVisual.js index 56e108cbf..3201d8594 100644 --- a/modules/dt.ui.ReplyWidgetVisual.js +++ b/modules/dt.ui.ReplyWidgetVisual.js @@ -157,7 +157,7 @@ ReplyWidgetVisual.prototype.focus = function () { setTimeout( function () { // Check surface still exists after timeout if ( targetWidget.getSurface() ) { - targetWidget.getSurface().getModel().selectLastContentOffset(); + targetWidget.getSurface().getView().selectLastSelectableContentOffset(); targetWidget.focus(); } } );