Skip to content

Commit e7b6b08

Browse files
committed
fix last active
1 parent e4b1e38 commit e7b6b08

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/src/main/java/com/getstream/sdk/chat/view/activity/ChatActivity.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,9 @@ private void configHeaderView() {
388388

389389
private void configHeaderLastActive(@Nullable Message message) {
390390
if (message == null || message.getUser().isMe()) {
391-
binding.tvActive.setVisibility(View.GONE);
392391
return;
393392
}
394-
393+
binding.tvActive.setVisibility(View.GONE);
395394
String lastActive = null;
396395
if (message != null) {
397396
if (!TextUtils.isEmpty(Global.differentTime(message.getCreated_at()))) {

library/src/main/res/layout/activity_chat.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
android:gravity="center"
6666
android:text=""
6767
android:textSize="20sp"
68+
android:visibility="invisible"
6869
app:layout_constraintBottom_toBottomOf="parent"
6970
app:layout_constraintStart_toStartOf="parent"
7071
app:layout_constraintTop_toTopOf="parent" />
@@ -144,7 +145,6 @@
144145
<TextView
145146
android:id="@+id/tv_new_message"
146147
style="@style/text_s"
147-
android:visibility="gone"
148148
android:layout_width="wrap_content"
149149
android:layout_height="wrap_content"
150150
android:layout_marginBottom="5dp"
@@ -154,6 +154,7 @@
154154
android:paddingEnd="8dp"
155155
android:text="New Messages!"
156156
android:textColor="@color/white"
157+
android:visibility="gone"
157158
app:layout_constraintBottom_toTopOf="@+id/ll_composer"
158159
app:layout_constraintEnd_toEndOf="@+id/ll_composer"
159160
app:layout_constraintStart_toStartOf="@+id/ll_composer" />

0 commit comments

Comments
 (0)