No One Can Stop Me Now

This commit is contained in:
DigiJ
2026-03-13 23:48:47 -07:00
parent 4d3570781e
commit 1a138a2bd0
428 changed files with 519668 additions and 259 deletions

View File

@@ -162,6 +162,38 @@ def mms():
return jsonify({'ok': True, 'messages': msgs, 'count': len(msgs)})
@rcs_tools_bp.route('/rcs-via-mms')
@login_required
def rcs_via_mms():
thread_id = request.args.get('thread_id')
tid = int(thread_id) if thread_id else None
limit = int(request.args.get('limit', 200))
msgs = _get_rcs().read_rcs_via_mms(tid, limit)
rcs_count = sum(1 for m in msgs if m.get('is_rcs'))
return jsonify({'ok': True, 'messages': msgs, 'count': len(msgs), 'rcs_count': rcs_count})
@rcs_tools_bp.route('/rcs-only')
@login_required
def rcs_only():
limit = int(request.args.get('limit', 200))
msgs = _get_rcs().read_rcs_only(limit)
return jsonify({'ok': True, 'messages': msgs, 'count': len(msgs)})
@rcs_tools_bp.route('/rcs-threads')
@login_required
def rcs_threads():
threads = _get_rcs().read_rcs_threads()
return jsonify({'ok': True, 'threads': threads, 'count': len(threads)})
@rcs_tools_bp.route('/backup-rcs-xml', methods=['POST'])
@login_required
def backup_rcs_xml():
return jsonify(_get_rcs().backup_rcs_to_xml())
@rcs_tools_bp.route('/drafts')
@login_required
def drafts():