()
| 15716 | """ |
| 15717 | self.__dict__.update(dict(r)) |
| 15718 | |
| 15719 | if has_group_pin and not group_unlocked: |
| 15720 | conn.close() |
| 15721 | return render_template("group_locked.html", title="Group chat", |
| 15722 | g=Obj(g_row), my_role=role, members=[type("M", (), m)() for m in members], |
| 15723 | all_users=all_usernames(), me=me) |
| 15724 | |
| 15725 | msg_rows = conn.execute(""" |
| 15726 | SELECT id, sender, body_enc, created_at |
| 15727 | FROM group_messages WHERE group_id=? ORDER BY id ASC LIMIT 400 |
| 15728 | """, (gid,)).fetchall() |
| 15729 | |
| 15730 | messages = [] |
| 15731 | for r in msg_rows: |
| 15732 | v = conn.execute("SELECT id, mime FROM group_voice WHERE gm_id=? ORDER BY id DESC LIMIT 1", (r["id"],)).fetchone() |
| 15733 | has_voice = bool(v) |
nothing calls this directly
no test coverage detected